Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: enumerate column numbers

by mwah (Hermit)
on Oct 10, 2007 at 16:06 UTC ( [id://644012]=note: print w/replies, xml ) Need Help??


in reply to enumerate column numbers

Let Perl do the array handling,
head -1 ./current.csv | perl -054 -ane 'chomp and print "$_ ".$c++."\ +n" for@F'
Regards

mwa

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found