From: Sebastian Hungerecker Date: 2008-01-31T23:54:53+09:00 Subject: Re: Newbie: add few lines to file ..? newman wrote: > I try to write code which adding extra lines to my file > > ruby -e 'readlines.each{.......... } ' myfile_name~ > myfile_name Replace the > with a >> and the output of your script will be appended to myfile_name instead of replacing it. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826