home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d180 / repstring.lha / RepString / Repstring.doc < prev    next >
Text File  |  1989-02-25  |  4KB  |  94 lines

  1. RepString - Version 1.0 - Copyright May 1988 by Luciano Bertato
  2.  
  3. --------------------------------------------------------------------------
  4. This piece of software is considered as "SHAREWARE"
  5. --------------------------------------------------------------------------
  6. If you feel that this program is worth something to you, then I would
  7. love to have some money for it. $5.00 possibly?
  8.  
  9. send the contributions to - Luciano Bertato
  10.                             P.O. Box 627
  11.                             King City, Ontario
  12.                             L0G 1K0       Canada
  13.  
  14. Thanks to the people who contribute!
  15. --------------------------------------------------------------------------
  16. files - RepString      - actual program
  17.         RepString.doc  - this file
  18.  
  19. Please keep these files together, so that everybody can get all the
  20. information they need. I STRONGLY ENCOURAGE everybody to spread this
  21. program around to their friends, and ESPECIALLY to other BBS's.
  22.  
  23. Thanks a lot......Ok, now here's the documentation....
  24. --------------------------------------------------------------------------
  25. This Utility will replace any type of string in any type of file
  26. with another string of any type.
  27.  
  28. Usage: RepString <input file> <output file> <old string> <new string>
  29.  
  30. where - input file : a file you want to modify (binary or text).
  31.         output file: the new file to be created.
  32.         old string : the string to be replaced (read on...).
  33.         new string : the string that will replace the old string
  34.                      (read on...).
  35. examples -
  36.  
  37. 1> repstring df0:message1 df1:message2 horse cat
  38.                       This will replace every occurrence of horse to
  39.                       cat in df0:message1 and create the new file
  40.                       called df1:message2.
  41.  
  42. 2> repstring df1:message3 df0:message4 "RAM File" "Text String"
  43.                       Use double quotes if the string has at least
  44.                       one space.
  45.  
  46. 3> repstring df0:message5 ram:message6 $0A $0D
  47.                       By putting a dollar sign in front of a hexadecimal
  48.                       string, you can replace any type of binary string.
  49.                       This will replace any occurrence of $0A (linefeed)
  50.                       to $0D (carriage return). This can be useful when
  51.                       you want to view an ED file in other types of
  52.                       editors which needs the carriage returns.
  53.  
  54. 4> repstring message ram:buffer $434154 "small mouse"
  55.                       You can mix up the string types. $434154 is
  56.                       hex for CAT. You can have a very long hex string
  57.                       like the example above.
  58.  
  59. 5> repstring ram:record1 vd0:record2 "$50.95" "$452.98"
  60.                       If you want to replace the character $ then
  61.                       you must put it in double quotes, like the example
  62.                       above. Or.....
  63.  
  64. 6> repstring ram:file1 df2:file2 $24 $a
  65.                       Or, you can use the ascii hex value of $ ($24).
  66.                       This will replace every $ to linefeeds ($0A).
  67.  
  68. 7> repstring df1:record6 df0:message change $22446f6722
  69.                       If a double quote is in a string, then use
  70.                       its ascii hex value of $22, like the above example.
  71.                       This will replace the string 'change' to
  72.                       $22446f6722 which is hex for "Dog".
  73.  
  74. 8> repstring "File 5" "ram:record four" "$24.00" "Twenty-Four Dollars"
  75.                       If there is a space in a filename, then use the
  76.                       double quotes, like the above example.
  77.  
  78. Note: If you want to alter an executable program, you should alter only
  79.       text within the program, and the old string must be of equal length
  80.       to the new string, or else the new file may crash when run.
  81.       Programmers can patch (alter bytes) if they know what they're doing.
  82.       Just don't alter copyrighted software, because I think that this
  83.       is not allowed, or something like that (right?).
  84. --------------------------------------------------------------------------
  85. If you discover ANY bugs in the program, or have any suggestions on
  86. how to improve it, feel free to send me E-mail.
  87.  
  88. CompuServe - 79246,1744
  89.  
  90. Canada Remote Systems - 416-231-0538 or 416-232-0442
  91.                         (Amiga Conference) LUCIANO BERTATO
  92. --------------------------------------------------------------------------
  93. Enjoy........
  94.