home *** CD-ROM | disk | FTP | other *** search
-
-
-
- KWS V1.11 Copyright (c) 1991-1992 Copy Con Incorporated Page 1
-
-
- TO PRINT THIS FILE, TYPE "COPY KWS.DOC PRN" AT THE DOS PROMPT.
-
-
- OVERVIEW
- --------
- KWS (KeyWord Search) is a small, fast program that performs logical
- AND/OR searches for keywords within one or more text files. Output can
- be displayed onscreen, or sent to any output device via standard DOS
- redirection. KWS excels in searching huge text files, such as BBS file
- lists, and works equally as well with average and small text files.
-
-
- DISCLAIMER
- ----------
- KWS is distributed on an "AS IS" basis without warranty, expressed or
- implied. Considerable testing effort has been expended, but the user
- is advised to check the program's suitability before relying on it.
- The user assumes full risk as to the results of using this program.
- Any liability of the author will be limited exclusively to product
- replacement. In no event shall the author be liable for any
- consequential damages arising from the use, or inability to use this
- program.
-
-
- REGISTRATION
- ------------
- KWS is NOT free - it is being offered to you as Shareware. If you
- plan to continue using KWS, you are obligated to pay the modest
- registration fee of $15. Registered users will receive the latest
- version of KWS with the "nag" messages removed, one free upgrade upon
- request, and half-priced subsequent upgrades.
-
- All registration information is contained in the REGISTER.TXT file. If
- that file is missing, register by sending a check or money order for
- $15 in U.S. dollars, drawn on a U.S. bank, to:
-
- Copy Con Incorporated
- P.O. Box 23255
- Baltimore, MD 21203-5255
-
- Please specify 3.5" or 5.25" diskette. MD residents add 5% sales tax.
- We thank you for your support.
-
-
-
- KWS V1.11 Copyright (c) 1991-1992 Copy Con Incorporated Page 2
-
-
- OPERATION
- ---------
- KWS is activated from the command line, using the format
-
- KWS filename search_string [search_string...] [options] [>output_device]
-
- filename file(s) to be searched (can contain wildcards)
- search_string text string(s) to search for
- output_device redirection target
- /C case-sensitive search
- /H include hidden/system files
- /L[n] display line numbers [optional width of 1-9]
- /N display lines not meeting search criteria
- /P pause after each screen
- /S subdirectory search
- /T display totals
- /W whole word search
-
- Each search string is comprised of keywords separated by semicolons.
- At least one keyword from each search string must be present in a
- given line for it to be printed.
-
- For example, "KWS ALLFILES.LST FIXED;HARD DISK;DRIVE >HD.LST" will
- take the lines in file ALLFILES.LST that contain either words FIXED or
- HARD (or both), and also contain either words DISK or DRIVE, and send
- them to file HD.LST. Up to 10 search strings are allowed, with up to
- 10 keywords per string.
-
-
- OPTIONS
- -------
- Options can appear anywhere on the command line after the filename.
- They can be in any order, and are not case-sensitive. Options can be
- separated by spaces (/L3 /P /T) or strung together (/L3/P/T or /L3PT).
-
- Option Description
-
- /C Search will be case-sensitive. Case-sensitive searches are
- approximately 15% faster than case-insensitive searches.
-
- /H Hidden and/or system files will also be searched.
-
- /L[n] Line numbers will be displayed with output. If no width is
- specified, the numbers will be left-justified, with a colon
- between the number and the text; otherwise, the numbers will
- be right-justified and zero-padded to the left, followed by
- the colon and text. If the specified width is too small for a
- number to fit, the number will NOT be truncated.
-
- /N Lines that do NOT fit the search criteria are displayed,
- instead of the ones that do.
-
- /P Pause between each screen of text. The program will auto-
- detect your screen size, and pause accordingly. This option
- should not be used if the output is to be redirected.
-
-
-
- KWS V1.11 Copyright (c) 1991-1992 Copy Con Incorporated Page 3
-
-
- OPTIONS (continued)
- -------------------
- Option Description
-
- /S Subdirectories will also be searched. This option is valid
- only with wildcard searches.
-
- /T Display total lines found per file. For wildcard file
- searches, a grand total will also be displayed.
-
- /W Only exact words will be searched for; words that are not
- keywords, but have keywords in them, will not be displayed.
-
-
- RETURN CODES
- ------------
- The DOS errorlevel will be set if a search is unsuccessful:
-
- Level Description
-
- 1 Invalid command line options
-
- 2 None of the files contain the search string(s)
-
- 3 Ctrl-Break interrupt
-
- 4 Invalid directory specified
-
- 5 No files match filespec
-
-
- EXAMPLES
- --------
- KWS catalog.lst dvorak keyboard /p
- will take the lines in file CATALOG.LST that contain the words
- DVORAK and KEYBOARD, and display them one screen at a time.
-
- KWS catalog.lst arc;lzh shell /l5 >prn
- will take the lines in file CATALOG.LST that contain either ARC or
- LZH, and also contain SHELL, and send them to the printer, along
- with their line numbers.
-
- KWS allfiles.lst /c /n .ZIP >nozip.lst
- will make a file called NOZIP.LST, which will contain all of the
- lines in ALLFILES.LST that do NOT contain the word .ZIP in caps.
-
- KWS \dl\*.lst MIDI /ptc
- will search all .LST files in the DL directory for the word MIDI in
- capital letters, and displays the filenames and lines onscreen, one
- screen at a time, with totals for each file.
-
- KWS *.bak the /w
- will search the backup files for lines that contain the word THE,
- but will not display them if THE is part of another word (as in
- THESIS or OTHER).
-
-
-
- KWS V1.11 Copyright (c) 1991-1992 Copy Con Incorporated Page 4
-
-
- EXAMPLES (continued)
- --------------------
- KWS allfiles.lst C /wc >com1
- will send the lines in ALLFILES.LST that contain a lone capital C
- (as in 'learn C' or 'C-language') to the device connected to COM1.
-
- KWS c:\*.bat del;era /s/h
- will search all of the batch files on the C: drive, including those
- with their hidden and/or system attributes set, to see if any of
- them delete/erase files.
-
-
- CORRESPONDENCE
- --------------
- If you have comments, suggestions or bug reports, please write to:
-
- Copy Con Incorporated
- P.O. Box 23255
- Baltimore, MD 21203-5255
-
- If you would like a reply, please include a self-addressed, stamped
- envelope. We look forward to hearing from you.
-