On Monday 05 February 2007 19:15, Jan Karjalainen wrote:
> How do I go through a text file and add ",on" at the end of each line?

Does it have to be in bash?

sed -e 's/\(.*\)/\1,on/g' filename

or, if you want to make the changes directly in the file

sed -ie 's/\(.*\)/\1,on/g' testfile

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to