Possible Duplicate:
Find and Replace Inside a Text File from a Bash Command
I've been told to change all the title tags in a website.
Because the title tag it's in all the pages of the website (more than 30) and it's static, I need to go file by file in order to replace this title with the new one.
So I was wondering if someone knows a script that can achieve this without having to do it manually in a one by one basis.
Example:
/var/www/websitename/
Inside this path, there is multiple .html files which I have to change the title from:
<title>Old title</title>
To:
<title>New title</title>