SEARCH.BAT – BBS file listings searcher.
REM MS-DOS ignores all lines with REM in front of them. Please keep them
REM in this batch file, though, as you or someone else might need to
REM reference to this in the future. Kenneth Udut, on 12/28/1992
REM Necessary files: GREP or similar file that searches through text files.
REM The -i parameter means to ignore case (upper or lower).
REM MS-DOS’s “FIND” command will work for files under 64K in length.
REM LIST. You can use TYPE D:\SEARCH\RESULTS\%1 | MORE if you wish or
REM some other text file viewing program, even Wordperfect
REM checks if user typed in anything. If not, go to JAIL.
if “%1″ == “” GOTO JAILREM Glory lines, as well as useful info about what the user is doing.
echo Simple ASCII Information Extractor Version 1.32, Kenneth Udut 12/29/1992
ECHO You are searching through all of the text files in D:\SEARCH for “%1″.
echo The results of this search will be placed in D:\SEARCH\RESULTS\%1.
echo Searching for “%1″ in D:\SEARCH\*.* … Please be patient.
REM Places Date and Time plus a blank line in %1.
REM You can see what’s going on with ECHO ON.
GREP -i “%1″ D:\SEARCH\*.* >> D:\SEARCH\RESULTS\%1
REM In case the user didn’t type it a file name, the batch file skips to here.