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