Re: [ILUG] [OT] text replacement recursively ?

From: Declan Grady (Declan.Grady at domain nuvotem.com)
Date: Wed 25 Sep 2002 - 14:11:03 IST


eggsellent !
Thanks Steve. Worked a treat.
Another similar q though .. mabye its regex stuff ?

i tried to also replace the string

std_mini.html">62000 with 62000.html">62000

by doing

sed "s/std_mini.html\"\>62000/62000.html\"\>62000/" infile >outfile

but it didnt do the replacements .. I suspect the double-inverted-commas ?
Thanks again for the help.
Declan

On Wed, Sep 25, 2002 at 01:29:52PM +0100, Stephen Shirley mentioned:
>
> If they're all in the same directory, then
>
> for i in *.html; do
> mv $i $i.old
> sed "s/75\ 48666/74\ 9548666/" $i.old > $i
> done
>



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:03 GMT