home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
finddos.zip
/
USAGE.TXT
< prev
Wrap
Text File
|
2001-01-18
|
1KB
|
48 lines
Finder.exe : Text find and replace utility.
Created by : Dr. Rishabh Bhandari
e-mail : drrbhandari@yahoo.com
Usage : FINDER <Command filename>
Command File format -
line1 : <Input filename>
line2 : <Output filename>
line3 : <Search string in special format>
line4 : <Replace string in special format>
Note : Input & Output filenames MUST be different.
Search & replace string format :
Just a normal string except when using '/' which acts as an escape character
/e = cr /l = lf /t = Tab // = / /? = Any character
/n = Any digit /0HH = ASCII code in hex
Note : '/n' not valid in replace string. Use '/?' instead.
Take a look at accompanying examples for more clarifications
Example1 (ListZip.bat)
--------
@echo off
rem Prerequisites- Path contains Pkunzip.exe and Finder.exe
echo.>archives.lst
rem Empty line for finder to find
rem The directory D:\Archives contains a few zip files
DIR D:\ARCHIVES\*.ZIP /-p/b/s>>archives.lst
echo archives.lst>command.txt
echo archives.bat>>command.txt
echo /e/l/?>>command.txt
echo /e/lpkunzip -v /?>>command.txt
Finder command.txt
rem Search all cr/lf pairs replace with cr/lf+"pkunzip -v "
call archives.bat
del archives.bat
del archives.lst
del command.txt
rem View names of all the files in archives