bc wrote: > > hello > > i have a flat file (csv) [it has about 114 rows] > > i want to put the word "insert " in front of each row, > > how it the "for each" writtin? in other words, in perl, how do i do a for each row >insert the word "insert ", then it comes out of the "for each" loop thingy...?
perl -pi.bak -e 's/^/insert /' filename would do it (remove .bak if you don't want a backup) /jon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]