[ILUG] [OT] text replacement recursively ?
Declan.Grady at nuvotem.com
Wed Sep 25 14:11:03 IST 2002
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
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.
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
More information about the ILUG