Log in

View Full Version : Replace Title



neo_philiac
11-10-2006, 01:57 PM
I want to replace only the titles of a group of pages in certain folder all at once without going thru page by page. Is there a way to do that? Please let me know ASAP. Are there other efficient way to do it.?

Twey
11-10-2006, 02:26 PM
sed 's/<title>Old Title<\/title>/<title>New Title</title>/i' /path/to/folder/*.html

neo_philiac
11-10-2006, 03:21 PM
Well sorry but how or where do i execute the command?

Twey
11-10-2006, 03:58 PM
In a shell on a UNIX-based machine.