Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Printing particular column is not working

by fishmonger (Pilgrim)
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


Comment on Re^2: Printing particular column is not working
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-12-25 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls