home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol5n19.zip / CHANGE.DOC < prev   
Text File  |  1987-07-30  |  2KB  |  49 lines

  1.          CHANGE                              Michael J. Mefford
  2.           Command                                    1986/No. 19
  3.  
  4.           ______________________________________________________
  5.  
  6.           Purpose:  Performs a rapid search-and-replace operation
  7.                     for text strings and/or ASCII decimal codes
  8.                     throughout a file of maximum 40,000-byte
  9.                     length.
  10.  
  11.           Format:   CHANGE filespec findstring replacestring
  12.  
  13.           Remarks:  The filespec parameter may include a drive
  14.                     letter and a path in addition to the
  15.                     designated filename.
  16.  
  17.                     Findstring and replacestring may consist of
  18.                     text characters enclosed within (double)
  19.                     quote marks or ASCII decimal codes whose
  20.                     numbers are separated by commas.  Note that
  21.                     the format requires that each parameter be
  22.                     separated by a single space.  Text strings in
  23.                     quotes and ASCII values in numerals may be
  24.                     combined in either string if separated by
  25.                     commas.
  26.  
  27.           Example:  To change all references to Miss Jones to
  28.                     Mrs. Smith in the file NOGOSSIP.ART on the
  29.                     current directory, you would enter
  30.  
  31.                     CHANGE NOGOSSIP.ART "Miss Jones" "Mrs. Smith"
  32.  
  33.           Example:  To strip out all carriage return-line feeds
  34.                     (i.e. replace them with a null string) in the
  35.                     file MCI.B16 in the \COMM subdirectory, enter
  36.  
  37.                     CHANGE \COMM\MCI.B16 13,10 ""
  38.  
  39.                     Notes:
  40.  
  41.                     1.   In the second example you might want to
  42.                          use a space between the quote marks
  43.                          rather than a null string to keep the
  44.                          words from running together.  Observe
  45.                          that by putting the number of the month
  46.                          in hexadecimal (B=November) you can fit
  47.                          both month and day within the three-
  48.                          character DOS filename extension.
  49.