Hi Guys,
I've got a website in a directory that contains a lot of files, and the name of the site has changed slightly. In the PHP files as HTML is the site name.. Now I want to change it from what it is to something else.. I've been using the following code to find all occurences within all the web files and print them to a file... How can I modify this to find the line and the change it?
Code:
find . -name "*.php" -exec fgrep WebSItENamE {} \; > test
I want WebSItENamE to change to WebSiteName. Sounds simple I guess and I would do it by hand but at last count, theres over a 1000 changes to be made and I don't have the time to do that...
Any help would be most appreciated...