I want to search thru every directory. filename and file, looking for a particular text (let's say we're looking for RECO). Then, when RECO (either upper or lower case) is found within the body of a file, I want to first make a copy of that file, to the same directory, with another extension added to the filename (original_name.txt.orig) and then replace RECO (within the original file) with UPGRD. In addition, if there are directories or filenames that have the same text (RECO) in them, I want to write the original directory name or filename to a file (in order to track what was changed), then replace the text RECO in the directory or filename with UPGRD. I'm using UNIX on AIX 5.2. I'm just coming back to using UNIX and I'm not quite to par with scripting.