home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
smart21b.zip
/
MACROS
/
GREPFIND.REX
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-11-05
|
334b
|
12 lines
/* Grep Find */
'S_CLEAR_MACRO_OUTPUT'
'S_PROMPT Grep Arguments, args'
IF rc \= 0 THEN EXIT
IF args = "CANCEL" THEN EXIT
'S_GET_CURR_SL_DIR' current_dir
'S_CD' current_dir
'S_GET_CURR_FILENAME' 'current_file'
'S_GET_REF_FILENAME 5' macro_out
grepstring = 'xxx.exe' || ' ' || args current_file
grepstring
'SLSTART' macro_out