Article View: comp.lang.misc
Article #3909SEARCH.BAT - BBS file listings searcher.
From: kudut
Date: Thu, 31 Dec 1992 03:41
Date: Thu, 31 Dec 1992 03:41
68 lines
3174 bytes
3174 bytes
@echo off 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 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 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 REM checks if user typed in anything. If not, go to JAIL. if "%1" == "" GOTO JAIL REM Glory lines, as well as useful info about what the user is doing. echo _________________________________________________________________________ echo. echo Simple ASCII Information Extractor Version 1.32, Kenneth Udut 12/29/1992 echo. 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 _________________________________________________________________________ echo. echo Searching for "%1" in D:\SEARCH\*.* ... Please be patient. echo. REM Places Date and Time plus a blank line in %1. echo. | more | date | find "Cur" > D:\SEARCH\RESULTS\%1 echo. | more | time | find "Cur" >> D:\SEARCH\RESULTS\%1 echo. >> D:\SEARCH\RESULTS\%1 REM You can see what's going on with ECHO ON. REM GREP is a program that searches through text files. The program FIND, REM which comes with MS-DOS, works for files under 64K in length. It is REM worth your while to search for a program called GREP or with the word REM GREP in its name, or just any kind of command-line text search program. REM BEEP is a program I have that beeps when you type it. You can remove it. REM LIST is the program that lists the results of the file. You can use the REM line TYPE D:\SEARCH\RESULTS\%1 | MORE if you wish. @echo on GREP -i "%1" D:\SEARCH\*.* >> D:\SEARCH\RESULTS\%1 BEEP LIST D:\SEARCH\RESULTS\%1 @echo off GOTO END REM In case the user didn't type it a file name, the batch file skips to here. :JAIL @echo off echo Syntax: SEARCH whatyouwant echo. echo You may need to customize SEARCH.BAT for your own use. Please contact echo Kenneth Udut at (908) 241-6246, on The Juice Bar BBS (908) 298-0764, echo or via the Internet at kudut@hamp.hampshire.edu if you need help. echo. echo Best Bet of all: Contact your local computer guru. Every place has at echo least one. :) --Ken echo. echo Finished! CopyMight (c) 12/28/1992 echo. beep beep :END
Technical Details
Message-ID:
<1992Dec30.234158.1@hamp.hampshire.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!enterpoop.mit.edu!eff!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!hamp.hampshire.edu!kudutShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!enterpoop.mit.edu!eff!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!hamp.hampshire.edu!kudut From: kudut@hamp.hampshire.edu Newsgroups: comp.lang.misc Subject: SEARCH.BAT - BBS file listings searcher. Message-ID: <1992Dec30.234158.1@hamp.hampshire.edu> Date: 31 Dec 92 03:41:58 GMT Sender: usenet@nic.umass.edu (USENET News System) Organization: Hampshire College Lines: 68