Page 1 of 1

How to add line to end of multiple files

Posted: Wed Mar 18, 2009 4:26 am
by kdelacruz
Hello,

I would like to add a couple lines of text to the end of multiple files all at once. Is there some kind of regular expression that will allow me to do this?

The files are not all the same length, and have different contents.

I appreciate any help

Thanks,
Kathy

Posted: Wed Mar 18, 2009 5:46 pm
by kitimat
apart from opening each file separately , then pasting in the text and saving ... I think not.

Have a look at wildedit available from this site. It is designed to do just what you ask.

Posted: Wed Mar 18, 2009 8:13 pm
by kdelacruz
The copy & paste into each file separately will not be my first choice, since there are a few hundred files :P

I was hoping there was some kind of code I could use for EOF ... but I will check out Wild Edit - thanks for the advice!

Posted: Wed Mar 18, 2009 10:16 pm
by ben_josephs
In WildEdit the regex \z matches the end of the file.