home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / txtutl / replace.lbr / REPLACE.COM (.txt) next >
Encoding:
Turbo Pascal Compiled 8bit CP/M-80 COM  |  1986-08-16  |  18.0 KB  |  139 lines

  1. Copyright (C) 1984 BORLAND Inc
  2. Kaypro II and IVctedP
  3. ^#V#N#F
  4. s#r#q#p
  5.     #^#V
  6. 9^#Vh&
  7. |/g}/o#
  8. T]=o`9y
  9. T9^K#
  10. 8/<oz
  11. T9^K#
  12. oGOW_g
  13. `1pF,
  14. w###6
  15. ##N#F*
  16. Nw#Fw
  17. q#p#6
  18. #w#w#w
  19. TRUEFALSE
  20.     N#F#s#r
  21. N#F#^#V
  22. " C}=(
  23. F+N+++V+^
  24. q#p##
  25. User break
  26. Run-time
  27.  error 
  28. , PC=
  29. Program aborted
  30. INPUT
  31. OUTPUT
  32. *What is the name of the file you want for !G
  33.  (RETURN for help)
  34. )The INPUT file is the file that data will
  35.  be read from
  36. )The information in it will not be altered
  37. Hit control-C to abort
  38. *The OUTPUT file is the file that data will
  39.  be written  to
  40. 3Any information currently in it will be overwritten
  41.      and lost
  42. Hit control-C to abort
  43. Can't open file = !X
  44. File !X
  45. $ already exists. Overwrite? (Y or N)
  46. $Ready to input strings from keyboard
  47.  Strings may be up to !P
  48.  characters in length
  49.    and up to !
  50.  keys may be input.
  51. 6 To start the program just hit 'RETURN' when asked for
  52.    a key to be found.
  53. Input string *A
  54.  to be found
  55. $Input what it is to be replaced with
  56.   Ready to read keys from a file.
  57. 4The input file should contain pairs of lines. On the
  58. 2  first line should be the string you want to FIND
  59. 6  and on the second line should be the string you want
  60. :  to REPLACE it with. PAIRS of strings SHOULD BE SEPARATED
  61. ,  by ONE BLANK LINE.   Strings may be up to !P
  62. $  in length and there is a limit of !
  63.  pairs allowed.
  64. s#r!x
  65.     Find Key *v
  66. Replace with 
  67. s#r*k
  68. *Syntax error in key near character number *
  69. %        (Y or N (Return for default))
  70. 6Options  allow you to cause the program to ignore some
  71. ;  differences between the keys to be found and the contents
  72. ;  of the input file. The parity-bit is set by some programs
  73. :  (notably WordStar). If the parity-bit is set in the key 
  74. 9  it will not be ignored, even if that option is selected
  75. 0Just hit the carriage return to get the defaults
  76. $  (ignore parity,do not ignore case)
  77. %Do you want to ignore the parity bit *
  78. )Do you want to ignore the case of letters*
  79. <Key strings (sets of characters or numbers) to search for or
  80. :  replace with may be input either from the keyboard while
  81. ;  running this program, or from a previously prepared file.
  82. :In both cases keys take the same form. Letters and numbers
  83. <  that may be typed in directly from the keyboard (including
  84. :  the space bar)  represent themselves, with the exception
  85.   of the character !^
  86. hit return to continue
  87. % may be used to enter characters that
  88.  do not appear on
  89. >  the keyboard, such as control characters and carriage return
  90. 8  and line-feed characters. Its use may take four forms.
  91.   They are:
  92.  - represents a single !^
  93.  in the key string.
  94. A  - where A is any letter A-Z.
  95. 8       It represents the corresponding control-character
  96.        in the key string.
  97. 3(###) - where ### is a 1 to 3 digit decimal number.
  98. ?       It represents character number ### of the ASCII sequence
  99.        in the key string.
  100. 6(##H) - where ## is a 1 or 2 digit hexadecimal number.
  101. ?       It represents character number ##H of the ASCII sequence
  102.        in the key string.
  103. hit return to continue
  104. ?Using these forms all ASCII characters 0-255 may be represented
  105. &   in either the FIND or REPLACE keys.
  106. <A file containing keys may be prepared on any word processor
  107. ,  or editor that uses ASCII files (most do).
  108. 4The input file should contain pairs of lines. On the
  109. 2  first line should be the string you want to FIND
  110. 6  and on the second line should be the string you want
  111. :  to REPLACE it with. PAIRS of strings SHOULD BE SEPARATED
  112. ,  by ONE BLANK LINE.   Strings may be up to !P
  113. $  in length and there is a limit of !
  114.  pairs allowed.
  115. 7The only character that will not work as a key in this 
  116. 5  program is ^Z (control-Z, ASCII 26 or 1AH) which is
  117.    used as an end-of-file marker.
  118. hit return to continue
  119. 1Do you want to input strings to be replaced from:
  120. 6                                       1) the keyboard
  121. 5                                       2) from a file
  122. 5                                       3) Set Options
  123. .                                       4) HELP
  124. IO error number *e
  125.  (Decimal)
  126. 2While reading input file in procedure READINSOURCE
  127. Program terminated
  128. s#r*i
  129. s#r*q
  130. s#r!P
  131.        REPLACE V1.1
  132.  Copyright (c)1985 by John Porter
  133. +This program copies one file to another and
  134. "   replaces specified key strings.
  135.  Reading        !
  136.  Replacing        !
  137.  Writing     !
  138.  Writing     !
  139.