home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / finddos.zip / USAGE.TXT < prev   
Text File  |  2001-01-18  |  1KB  |  48 lines

  1.  Finder.exe : Text find and replace utility.
  2.  Created by : Dr. Rishabh Bhandari
  3.  e-mail     : drrbhandari@yahoo.com
  4.  
  5.  Usage      : FINDER <Command filename>
  6.  
  7.  Command File format -
  8.  line1 : <Input filename>
  9.  line2 : <Output filename>
  10.  line3 : <Search string in special format>
  11.  line4 : <Replace string in special format>
  12.  
  13.  Note : Input & Output filenames MUST be different.
  14.  
  15.  Search & replace string format :
  16.  Just a normal string except when using '/' which acts as an escape character
  17.  /e = cr     /l = lf     /t = Tab    // = /      /? = Any character
  18.  /n = Any digit          /0HH = ASCII code in hex
  19.  
  20.  Note : '/n' not valid in replace string. Use '/?' instead.
  21.  Take a look at accompanying examples for more clarifications
  22.  
  23. Example1 (ListZip.bat)
  24. --------
  25.  
  26. @echo off
  27. rem Prerequisites- Path contains Pkunzip.exe and Finder.exe
  28.  
  29. echo.>archives.lst
  30. rem Empty line for finder to find
  31.  
  32. rem The directory D:\Archives contains a few zip files
  33. DIR D:\ARCHIVES\*.ZIP /-p/b/s>>archives.lst
  34.  
  35. echo archives.lst>command.txt
  36. echo archives.bat>>command.txt
  37. echo /e/l/?>>command.txt
  38. echo /e/lpkunzip -v /?>>command.txt
  39. Finder command.txt
  40. rem Search all cr/lf pairs replace with cr/lf+"pkunzip -v "
  41.  
  42. call archives.bat
  43. del archives.bat
  44. del archives.lst
  45. del command.txt
  46.  
  47. rem View names of all the files in archives
  48.