% VAX-11 Librarian V04-00HsI<p|I<5 GSRp|I<1 GSRC Global Search and Replace will search for a character string in aB user specified set of files and replace with a character string.A When any strings are replaced in a file, a new version will be A created, with the exception of when a Quit is entered in VERIFY mode. Format:A GSR search-and-replace-file-spec search-string replace-string 2 Parameters search-and-replace-file-specH Specifies the file(s) to be searched for string. If strin gs are found9 and replaced a new version of the file will be created. search-stringF Specifies the character string to be searched for. If the string isH entered without quotes, the string will be translated to uppercase forD the search. If entered with quotes the string will be used as is. replace-stringG Specifies the character string to replace the search string. If the E string is entered without quotes, the string will be translated to G uppercase for the search. If  entered with quotes the string will be used as is.2 Command_Qualifiers/VERIFY /NOVERIFY defaultG When specified, the user will be prompted at each whenever the search3 string is located, before the replacement occurs. The user is prompted:/ Replace Yes, No, All, End, or Quit [Y]:J Replying 'Y' to the prompt will force the replacement and continue the search.G Replying 'N' will skip the replacement and continue the search.G Re plying 'A' will force the replacement and turn VERIFY off forD the duration of the Search and Replace process, allowing all7 occurences of the search string to be replaced.C Replying 'E' will skip the replacement for the rest of the > current file and continue the search on the next file.G Replying 'Q' will skip the replacement for this file, not writeJ a new version of this file (regardless of changes) and discontinue the search process ./LOG /NOLOG defaultF When specified, the filename of each file found with the string are I displayed, with the original version of each line containing the search string./ /LOG has no effect when /VERIFY is specified./OUTPUT /OUTPUT=output-file-specC When specified the same information displayed when using the /LOG/ qualifier is written to the output-file-spec. 2 Examples" - GSR/LOG [...]FILE*.DAT IS WAS% ==> $2$DUA0:[TEMPDIR]FILE1.DAT;2 T HIS IS THE A TEST.8 THIS WAS A FINE FILE BEFORE THE SEARCH AND REPLACE.- ==> $2$DUA0:[TEMPDIR.SUBDIR]FILE2.DAT;23 THIS IS THE ANOTHER TEST.I Searches all the files matching the FILE*.DAT wildcard specificationJ in the current directory and all subdirectories for the string IS and% replaces it with the string WAS.; - GSR/VERIFY/OUTPUT=TEMP.OUT *.COM uppercase "lowercase"% ==> $2$DUA0:[TEMPDIR]MYCOM.COM;5> THIS IS UPPERCASE THIS IS NOT upperca se. UPPERCASE TEST. ^- Replace Yes, No, All, End, or Quit [Y]:Y> THIS IS lowercase THIS IS NOT uppercase. UPPERCASE TEST.0 ^- Replace Yes, No, All, End, or Quit [Y]:AD Searches all .COM files in the current directory for the stringJ UPPERCASE (notice the translation to uppercase because of no quotes).G The user is prompted and enters 'Y'. On the same line notice thatI UPPERCASE was changed to lowercase. When 'A' is entered at the nextI prompt the replacement occures, VERIFY is turned off, and the search process continues.ww