Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Printing particular column is not working

by fishmonger (Chaplain)
on Jul 24, 2014 at 14:02 UTC ( #1094919=note: print w/replies, xml ) Need Help??


in reply to Re: Printing particular column is not working
in thread Printing particular column is not working

No need for 2 separate split statements.

perl -ne 'printf("%10s %s \n", (split/,/)[4,0]);' file.csv

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1094919]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-07-27 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (422 votes). Check out past polls.