How to add line to end of multiple files

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
kdelacruz
Posts: 4
Joined: Fri Dec 12, 2008 11:12 pm

How to add line to end of multiple files

Post 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
kitimat
Posts: 45
Joined: Tue Jul 20, 2004 5:44 pm

Post 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.
kdelacruz
Posts: 4
Joined: Fri Dec 12, 2008 11:12 pm

Post 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!
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

In WildEdit the regex \z matches the end of the file.
Post Reply