Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Prepend Evey Line in a File

by Enlil (Parson)
on Feb 03, 2006 at 10:03 UTC ( #527580=note: print w/ replies, xml ) Need Help??


in reply to Prepend Evey Line in a File

one more way:

perl -pi.bak -e 's/^/PREFIX/' filename.csv


Comment on Re: Prepend Evey Line in a File
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-07-07 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls