| Qualifiers |
| /CONFIRM Prompt user for action |
| /LENGTH=maximum_record_length Truncate records |
| /LOG Send messages to terminal |
| /OUTPUT[=file_spec] File for messages |
| /RANGE=(start_number[,end_number]) Define records to search |
| /STATISTICS Report substitution statistics |
| /TAB[=number_of_spaces] Replace TAB with blanks |
| /VERSION Show the SWAP version you are running |
| /NOCONFIRM Don't prompt user |
| /NOEXACT Don't consider case |
| /NOLOG Don't send messages |
| /NOOUTPUT Don't record messages |
| /NOSTATISTICS Don't report statistics |
| /NOTAB Don't replace TAB's |
| The start-column is the first column of each record in the file that SWAP should begin checking for matches at. The default value is 1. |
| The end-column is the last column of each record in the file that SWAP should check for matches at. The default value is the end of each line (EOL). |
| Change every occurrence of the string "Changed by" to "Modified by" in columns 10 to 40 of every command procedure in the current directory. |
| Only columns 7 through 72 inclusive will be searched for "Johnny" (ignoring case). Columns 1_6 and 73 to EOL will be left unchanged. All files in the default directory will be searched. |
| Ignore this substitution, continue with the file |
| Ignore this file, continue with other files |
| Abort the command |
| Help |
| SWAP will ask the user what action to take each time it finds the search string "A". All files in the default directory will be searched. |
| SWAP will test for case during the search (it will look for "John"). It will substitute "John" for "Ralph" in all .DAT files in the default directory. |
| The file specification of the file or files you want SWAP to not process. To specify multiple files, separate the file names with commas, and enclose the list in parenthesis. If a single file is specified, the parenthesis are not necessary. You cannot use device, directory, or logicals in the /EXCLUDE clause but wildcards are allowed. If the file exists in two directories (specified in the input specification), and that file is in the /EXCLUDE the file will be ignored in both directories. |
| All FORTRAN source programs in the default directory will be processed except MAIN.FOR. "test" (ignoring case) will be substituted with "temp". |
| All runoff (.RNO) files in the default directory will be processed. CHARLIE.RNO and all files named "SYSUPD" will be ignored. "test" (case ignored) will be substituted with "temp". |
| SWAP will display the information screen. |
| The maximum record length that SWAP will write out when modifying a file. Max-record-length must be greater than 1. If it is larger than the RMS maximum record length for the file, the smaller value is used. The RMS maximum record length of text input files is frequently 255 bytes, this is the length the EDT text editor creates files with. |
| Input records longer than 80 characters will be truncated to 80 for all files in the default directory. No other substitution will be performed. |
| All files in the default directory will be searched for "coffee" (ignoring case). "tea" will be substituted for each occurance of "coffee". Each record will be truncated (if necessary) to 72 characters. |
| /LOG |
| $ SWAP/NOLOG *.* jack "Jill" |
| All files in the default directory will be searched for the string "jack" (ignoring case). "Jill" will be substituted in for all occurances of "jack" (ignoring case). No messages will be written to the screen. |
| Can be any valid file specification. If no file specification is provided with the /OUTPUT qualifier the messages will be written to SWAP_CHANGES.LOG in the current directory. |
| All files in the default directory will be searched for "a" (igoring case). For each occurance found, "A" will be substituted in. A record of all substitutions will be written to SWAP_CHANGES.LOG. |
| All files in the default directory will be searched for "telephone" (igoring case). For each occurance found, "dictaphone" will be substituted in. A record of all substitutions will be written to CHANGES.SWP. |
| SWAP will display the menu interface. |
| The start-record is the first record of each file that SWAP is to begin checking for matches at. The default value is 1. |
| The end-record is the last record of each file that SWAP is to check for matches in. The default value is to check to the end of the file (EOF). |
| All files in the default directory will be searched for "cord" (ignoring case). All occurances found will be changed to "wire". For each file, records 1_29 and 401 through end of file will be ignored. The rest will be searched. |
| All files in the default directory will be searched for "smell" (ignoring case). All occurances found will be changed to "taste". For each file, the first 6 records will be ignored. The rest will be searched. |
| All files with .FOR extentions will be searched for "FORTRAN" (ignoring case). All occurances found will be changed to "COBOL". SWAP will report which files were changed and how many substitutions were made. There are also a number of other statistics that will be included. |
| The number of spaces that each TAB character seen should be replaced with during processing. The default value is 8. |
| TEST.FOR will be searched for the string "MAXIMUM" (ignoring case). All occurances will be changed to "MINIMUM". TAB characters will be replaced with 4 blanks in ALL records of TEST.FOR. |