home *** CD-ROM | disk | FTP | other *** search
- RepString - Version 1.0 - Copyright May 1988 by Luciano Bertato
-
- --------------------------------------------------------------------------
- This piece of software is considered as "SHAREWARE"
- --------------------------------------------------------------------------
- If you feel that this program is worth something to you, then I would
- love to have some money for it. $5.00 possibly?
-
- send the contributions to - Luciano Bertato
- P.O. Box 627
- King City, Ontario
- L0G 1K0 Canada
-
- Thanks to the people who contribute!
- --------------------------------------------------------------------------
- This software is part of an arced package called REPSTRG.ARC
-
- files in REPSTRG.ARC - RepString - actual program
- RepString.doc - this file
-
- Please keep these files together, so that everybody can get all the
- information they need. I STRONGLY ENCOURAGE everybody to spread this
- program around to their friends, and ESPECIALLY to other BBS's.
-
- Thanks a lot......Ok, now here's the documentation....
- --------------------------------------------------------------------------
- This Utility will replace any type of string in any type of file
- with another string of any type.
-
- Usage: RepString <input file> <output file> <old string> <new string>
-
- where - input file : a file you want to modify (binary or text).
- output file: the new file to be created.
- old string : the string to be replaced (read on...).
- new string : the string that will replace the old string
- (read on...).
- examples -
-
- 1> repstring df0:message1 df1:message2 horse cat
- This will replace every occurrence of horse to
- cat in df0:message1 and create the new file
- called df1:message2.
-
- 2> repstring df1:message3 df0:message4 "RAM File" "Text String"
- Use double quotes if the string has at least
- one space.
-
- 3> repstring df0:message5 ram:message6 $0A $0D
- By putting a dollar sign in front of a hexadecimal
- string, you can replace any type of binary string.
- This will replace any occurrence of $0A (linefeed)
- to $0D (carriage return). This can be useful when
- you want to view an ED file in other types of
- editors which needs the carriage returns.
-
- 4> repstring message ram:buffer $434154 "small mouse"
- You can mix up the string types. $434154 is
- hex for CAT. You can have a very long hex string
- like the example above.
-
- 5> repstring ram:record1 vd0:record2 "$50.95" "$452.98"
- If you want to replace the character $ then
- you must put it in double quotes, like the example
- above. Or.....
-
- 6> repstring ram:file1 df2:file2 $24 $a
- Or, you can use the ascii hex value of $ ($24).
- This will replace every $ to linefeeds ($0A).
-
- 7> repstring df1:record6 df0:message change $22446f6722
- If a double quote is in a string, then use
- its ascii hex value of $22, like the above example.
- This will replace the string 'change' to
- $22446f6722 which is hex for "Dog".
-
- 8> repstring "File 5" "ram:record four" "$24.00" "Twenty-Four Dollars"
- If there is a space in a filename, then use the
- double quotes, like the above example.
-
- Note: If you want to alter an executable program, you should alter only
- text within the program, and the old string must be of equal length
- to the new string, or else the new file may crash when run.
- Programmers can patch (alter bytes) if they know what they're doing.
- Just don't alter copyrighted software, because I think that this
- is not allowed, or something like that (right?).
- --------------------------------------------------------------------------
- If you discover ANY bugs in the program, or have any suggestions on
- how to improve it, feel free to send me E-mail.
-
- CompuServe - 79246,1744
-
- Canada Remote Systems - 416-231-0538 or 416-232-0442
- (Amiga Conference) LUCIANO BERTATO
- --------------------------------------------------------------------------
- Enjoy........
-
-
-