home *** CD-ROM | disk | FTP | other *** search
/ Boldly Go Collection / version40.iso / TS / 25D / TSNR2.ZIP / QUIKREF < prev    next >
Text File  |  1992-02-08  |  4KB  |  106 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.           Quick Reference Card for Turbo SNR
  8.  
  9.           Turbo SNR is  called from  the command line  using the  following
  10.           syntax:
  11.  
  12.                SNR [-options] [@command file] file(s)
  13.  
  14.           An option is one of the following preceded with either a '-' or a
  15.           '/'.  Immediately  following the option letter you can  use a '-'
  16.           to turn the option off, or a  '+' to turn it on (the default when
  17.           you  don't specify a '-' or '+' is  to turn the option on).  When
  18.           an option defaults to ON it will be noted in the table below:
  19.  
  20.                8    Strip the  high bit from  every character in  the input
  21.                     file(s).
  22.  
  23.                ?    Displays a brief help  screen listing all the available
  24.                     options in Turbo SNR.
  25.  
  26.                #    List line  numbers that contained  a match to  at least
  27.                     one of the substitution strings.
  28.  
  29.                a    Use ASCII mode.
  30.  
  31.                b    Backup files that are changed.  **DEFAULT**
  32.  
  33.                c    Display a count on the  number of strings replaced  for
  34.                     each input file.
  35.  
  36.                d    Search child subdirs for input files.
  37.  
  38.                h    Displays a brief help  screen listing all the available
  39.                     options in Turbo SNR.
  40.  
  41.                i    Ignore case when searching.
  42.  
  43.                k    Keep  the  case of  the  string that  was  matched when
  44.                     replacing.
  45.  
  46.                l    List each of  the lines  that contained a  match to  at
  47.                     least one of the substitution strings.
  48.  
  49.                o    Use the one to one table when possible.
  50.  
  51.                p    Search for "programmer" words  (i.e. strings that would
  52.                     be  considered  identifiers  or  tokens  in  a  typical
  53.                     programming language).
  54.  
  55.                r    Allow   use  of  regular  expressions  in  substitution
  56.                     strings.
  57.  
  58.                s    Specify  a  substitution  string.   The  format  for  a
  59.                     substitution string is as follows:
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                          "[context:]search_value=[context:][replace_value]"
  66.  
  67.                     For example, to replace the word 'mine' with 'your' you
  68.                     would use the following:
  69.  
  70.                          SNR -s "mine=your"  FILE.EXT
  71.  
  72.                     To delete all occurrences of  the word 'mine' you would
  73.                     use the following:
  74.  
  75.                          SNR -s "mine=" FILE.TXT
  76.  
  77.                     The context  specifiers are  optional and when  present
  78.                     are  a single numeric digit from  0-9 (if not specified
  79.                     the  context fields are  defaulted to 0  by Turbo SNR).
  80.                     The context setting specifies the context SNR should be
  81.                     in to replace the  string (when a file is  first opened
  82.                     Turbo SNR is in  context 0).  The second  context field
  83.                     specifies the context to  switch to after a replacement
  84.                     of the string.  Contexts 0  - 8 are user contexts while
  85.                     context  9 is  reserved for  the "global"  table.   The
  86.                     global table includes values  that will be searched for
  87.                     no matter  what the current  context of  Turbo SNR  is.
  88.                     The following  would replace  every other match  to the
  89.                     letter 'a' with the letter 'z':
  90.  
  91.                          SNR -s "0:a=1:z" -s "1:a=a" FILE.TXT
  92.  
  93.                     Assuming FILE.TXT contained:  aaaaa
  94.  
  95.                     It would be changed to: zazaz
  96.  
  97.  
  98.                v    Verbose mode. **DEFAULT**
  99.  
  100.                w    Search for words (i.e. strings that would be considered
  101.                     words in a language).
  102.  
  103.                z    Interactive  mode -  prompt user before  replacing each
  104.                     match.
  105.  
  106.