Web Hosting Talk







View Full Version : where oh where?


Pingu
06-30-2002, 05:02 PM
Not so long ago I saw a thread (or more) about replacing the url in html files through the shell.

Well, I thought I bookmarked it, but :bawling:

Anyway, I need to update an url on a lot of files. Anyobne where that thread is hiding? Or a solution ofcourse :)

Thanks :)

NixHosting
06-30-2002, 05:38 PM
Type "man grep" without the quotes. grep will search files and replace the content with what you specify.

CobaltCuban
06-30-2002, 11:49 PM
cd /path/to/site/
find . -name "*.html" -print|xargs sed s/oldurl/newurl/g

please, first make a backup... just in case.