[oclug] ...and speaking of awk...
Tom Goulet
tomg at nova.yi.org
Thu Feb 22 19:20:56 EST 2001
>for file in * ; do
> # using , in sed saves you from escaping slashes
> sed 's,<a href="http://some.url/,<a href=",' < $file >tmpfile
> # ^ before ^ ^ after ^
> mv tmpfile file
>done
Except that file ^^^^ needs a $ too.
I'll be sure to get more practice in for my mad shell scripting skills
before posting solutions...
TomG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20010223/bd330b12/attachment.bin
More information about the OCLUG
mailing list