Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
[Corion]: Yay. I've now published (at $work) that random Excel workbook where on one sheet you enter your SQL and on the other sheet, you have a button and receive the results. I'm so evil in enabling cow-orkers to self-supply ;)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2018-07-18 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (392 votes). Check out past polls.

    Notices?