for file in $(grep -il "Hello" *.txt)
sed -e "s/Hello/Goodbye/ig" $file > /tmp/tempfile.tmp
mv /tmp/tempfile.tmp $file
find /path/to/start/from/ -type f | xargs perl -pi -e 's/applicationX/applicationY/g'
if test -f $myname
then echo "$0: Cannot make directory $myname (already exists)" 1&>2
for FILE in $@;
do sed 's/old_string/new_string/g' $FILE > "$myname"/"$FILE"new_tmp
mv "$myname"/"$FILE"new_tmp $FILE
Replace old_string with the string you want to replace and new_string with the replacement string.
Note: This script makes use of the /tmp directory.
The sed command uses the same syntax as Perl to search for and replace strings. Once you have created the script, enter the following at the Unix command line prompt: sh script_name file_pattern Replace script_name with the filename of the script, and file_pattern with the file or files you want to modify. You can specify the files that you want to modify by using a shell wildcard, such as *.html.