home *** CD-ROM | disk | FTP | other *** search
/ Tools en Utilities / CDASS_5.ISO / shell / file / tsnr21.arj / QUIKREF < prev    next >
Encoding:
Text File  |  1990-11-22  |  4.0 KB  |  109 lines

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