In UNIX environment, the following combination of perl and find will serch for a particular file and replace the occurence of a particular string with another string in that file. This will also work for multiple files and directories. The find command finds the file and the perl script replaces old string with the new one.
perl -pi -e 's/old string/new string' `find . -name "file name"`
posted @ Monday, October 16, 2000 5:00 AM