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

perl -pi -e 's/$/,on/' [your list of files]
or
find . -name "*txt" | xargs perl -pi -e 's/$/,on/'

-- 
Brian Jackson Photo
Sports ~ People ~ Events
http://www.BrianJacksonPhoto.com
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to