D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Find & Replace across multiple files



aparently emacs can do this - but i haven't got to that bit yet!

still - emacs is easy to install and has plenty of help on the web,

kev

Simon Waters wrote:

Jonathan Melhuish wrote:


Anybody got any ideas on how to replace a long text string across multiple
text files, using only a piece of paper, a pen, a piece of string and a linux
box?



It gets kind of messy if the text string can be broken at different line lengths and the like, recurs repeatedly on the same line (you can always run it twice and make sure it does nothing the next time just to be sure).

The SED FAQ tells you how to do it in both PERL and sed

http://www.ptug.org/sed/sedfaq.htm

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.






-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.


Lynx friendly