home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boldly Go Collection
/
version40.iso
/
TS
/
25D
/
TSNR2.ZIP
/
QUIKREF
< prev
next >
Wrap
Text File
|
1992-02-08
|
4KB
|
106 lines
Quick Reference Card for Turbo SNR
Turbo SNR is called from the command line using the following
syntax:
SNR [-options] [@command file] file(s)
An option is one of the following preceded with either a '-' or a
'/'. Immediately following the option letter you can use a '-'
to turn the option off, or a '+' to turn it on (the default when
you don't specify a '-' or '+' is to turn the option on). When
an option defaults to ON it will be noted in the table below:
8 Strip the high bit from every character in the input
file(s).
? Displays a brief help screen listing all the available
options in Turbo SNR.
# List line numbers that contained a match to at least
one of the substitution strings.
a Use ASCII mode.
b Backup files that are changed. **DEFAULT**
c Display a count on the number of strings replaced for
each input file.
d Search child subdirs for input files.
h Displays a brief help screen listing all the available
options in Turbo SNR.
i Ignore case when searching.
k Keep the case of the string that was matched when
replacing.
l List each of the lines that contained a match to at
least one of the substitution strings.
o Use the one to one table when possible.
p Search for "programmer" words (i.e. strings that would
be considered identifiers or tokens in a typical
programming language).
r Allow use of regular expressions in substitution
strings.
s Specify a substitution string. The format for a
substitution string is as follows:
"[context:]search_value=[context:][replace_value]"
For example, to replace the word 'mine' with 'your' you
would use the following:
SNR -s "mine=your" FILE.EXT
To delete all occurrences of the word 'mine' you would
use the following:
SNR -s "mine=" FILE.TXT
The context specifiers are optional and when present
are a single numeric digit from 0-9 (if not specified
the context fields are defaulted to 0 by Turbo SNR).
The context setting specifies the context SNR should be
in to replace the string (when a file is first opened
Turbo SNR is in context 0). The second context field
specifies the context to switch to after a replacement
of the string. Contexts 0 - 8 are user contexts while
context 9 is reserved for the "global" table. The
global table includes values that will be searched for
no matter what the current context of Turbo SNR is.
The following would replace every other match to the
letter 'a' with the letter 'z':
SNR -s "0:a=1:z" -s "1:a=a" FILE.TXT
Assuming FILE.TXT contained: aaaaa
It would be changed to: zazaz
v Verbose mode. **DEFAULT**
w Search for words (i.e. strings that would be considered
words in a language).
z Interactive mode - prompt user before replacing each
match.