Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: perl one liner print columns 2.. last

by dbuckhal (Pilgrim)
on Jan 04, 2013 at 19:06 UTC ( #1011703=note: print w/replies, xml ) Need Help??


in reply to perl one liner print columns 2.. last

I got this from an example in "Effective Perl Programming", pg 429. This will skip the first line of a file, but what type of columns are you trying to generate?
perl -ne "print unless $. == 1;" filename(s)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011703]
help
Chatterbox?
[james28909]: is there some setting i am missing?
[GrandFather]: It's either lines that your browser won't split (no white space) or nodes with <pre> tags which ought to be code tags
[GrandFather]: I haven't noticed the problem for a while, but it can be hard to find the nasty node. If you do find it, consider it and with luck a janitor will fix it

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-05-24 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?