Jack Stone wrote:
Appreciate a tip on how to search & replace  hundreds of *.htm files:

From this:
<li><a href="http://www.domain.com/tales/wouf.html
To this:
<li><a href="tales/wouf.html

In other words, I just want the relative path and remove all the extra:
http://www.domain.htm/  portions of the lines.

Large thanks in advance for help.

Happy Holidays!
Jack
cat file.html | sed -e "s|http://www.domain.com||g" > file.tmp.html && mv file.tmp.html file.html
-Garrett
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to