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

Re: perl one liner print columns 2.. last

by eyepopslikeamosquito (Chancellor)
on Jan 04, 2013 at 23:34 UTC ( #1011739=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat /tmp/1.out|perl -lane 'print $F[1]..$F[-1]'
    
  2. or download this
    perl -lane 'print join q{ }, @F[1..$#F]' /tmp/1.out
    
  3. or download this
    perl -lape '$_=join q{ }, @F[1..$#F]' /tmp/1.out
    
  4. or download this
    perl -lpe 's/\s*\S+\s*//' /tmp/1.out
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2016-04-29 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.