It is not within the scope of this document to explain the workings of text editors or search and replace commands, but it is important to note that SED and other such commands and utilities can make short work of complicated or tedious tasks.
Lets say that you change the name of a particular graphic or Icon. Now you have to change every reference to it in all your documents. Using a combination of Unix's Foreach command and sed, you can search and replace every instance in the entire directory.
![]()
Example:
First create a file called mask that contains only the following information:
s/greenball/redball/Then Type (In a UNIX C-Shell):
mkdir temp foreach file (`ls`) ? echo $file ? sed -f mask $file > temp/$file ? endNow all the files will be copied into the TEMP directory and will have redball replaced for greenball. Simply move the files from TEMP back to the original directory.