home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Utilities / Programming / PowerReplace 4.1 / Documentation / for beginners < prev    next >
Encoding:
Text File  |  1995-12-18  |  1.8 KB  |  130 lines  |  [ttro/ttxt]

  1.  
  2.                Learn PowerReplace step by step
  3.                                                                                                       December 2, 1995
  4.                                            
  5. ______________________________________________________________
  6. Problem:
  7.  
  8. You have three text files: mytext1, mytext2 and mytext3. You want to replace the string "print" in these files by "write".
  9.  
  10. ______________________________________________________________
  11. Solution:
  12.  
  13. (1) Create a text file using any text editor and write the following line in it:
  14. "print" "write"
  15. Name this file “SimpleFilter” and save it.
  16.  
  17. (2) Open PowerReplace, select the menu “File/Make Filter File”. The “Make PowerReplace Filter File” window appears.  You can use Balloons Help system.
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. (3) Click the button “Choose File”, and select the “SimpleFilter” file that you have created at (1). Check the name “SimpleFilter” appear in the window.
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. (4) Click the button “Make” to turn this file into filter file. A progress indicator window will appear during a short time. That is OK.
  66.  
  67. (5) Click the button “Exit” to quit “Make PowerReplace Filter File” window. Then quit PowerReplace application with the Menu “File/Quit”.
  68.  
  69. (6) Put the file “SimpleFilter” into the “Filter” Folder for later use.
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. (7) Open PowerReplace. After confirming that there is an item “SimpleFilter” in the menu “Filter”, select it.
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98. (8) Under Finder, select your files (mytext1, mytext2 and mytext3), drag and drop them onto the PowerReplace icon. That is all.
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. (9) Normally three new files named “mytext1.new”,  “mytext2.new” and “mytext3.new” have been created in the same folder.
  120.  
  121.  
  122. _____________________________
  123.  
  124. Guoniu Han
  125. 30, avenue du Gal de Gaulle
  126. 67000 Strasbourg, France
  127. email: guoniu@math.u-strasbg.fr
  128. http://130.79.4.26/~guoniu/mac/
  129. _____________________________
  130.