home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / f / find52.lbr / FIND52.DQC / FIND52.DOC
Text File  |  1993-03-30  |  7KB  |  151 lines

  1.  
  2. TOPIC:  FIND52
  3.  
  4. DATE :    01 NOV 84
  5.  
  6. FROM :    IRV HOFF
  7.  
  8.  
  9.     NOTE:   FIND52 now offers the ability
  10.             to look only at the beginning
  11.         of a new line for a string of
  12.         characters, via the '\' char-
  13.         acter which fakes a line feed.
  14.         FIND52 also optionally allows
  15.         making a disk file of the re-
  16.         sults.  This permits printing
  17.         a paginated listing, if LISTT
  18.         is used or a similar program.
  19.  
  20.  
  21.      FIND52 locates strings of characters in a file, then displays the
  22. entire line(s) that string was found.  It can be used with wildcards to
  23. look through numerous files automatically, searching for a particular
  24. combination of characters.  It is especially useful with MAST.CAT or
  25. MAST.LST catalog programs to see what disk(s) a program might be on.
  26. It would show how many copies of that file were available, permitting
  27. "housecleaning" of extra programs.  It is very convenient to use when
  28. updating newer versions of files, to erase those no longer needed that
  29. have similar names.  It has some advantages over using a normal editor
  30. "search" since it displays each line, rather than merely stopping each
  31. time the combination appears.  (Some editors would not conveniently al-
  32. low hard copy printing of "search" results.)  FIND52 can optionally make
  33. a disk file for later printing, etc.  Using a program like LISTT with
  34. such a disk file would then permit a paginated listing of the results,
  35. with page numbers, date, heading, etc..
  36.  
  37.      You will likely wish to keep FIND52.COM on an archive disk, then
  38. rename to FIND.COM on your catalog and utility disks to simplify typing
  39. the complete name (or even remembering the current version).
  40.  
  41.  
  42.     NOTE:  There are 3 special characters available
  43.            in the string area.  These fake control
  44.            characters that normally cannot be typed:
  45.  
  46.          _ = tab key (underline)
  47.          ? = any character
  48.          \ = line feed (reverse slant) for finding
  49.             strings starting at the beginning
  50.             of a new line
  51.  
  52.  
  53.      Examples of how to use FIND52:
  54.  
  55.  1)    B>FIND
  56.  2)    B>FIND ?
  57.  3)    B>FIND HELLO.ASM
  58.  4)    B>FIND MAST.LST MODEM
  59.  5)    B>FIND MAST.CAT _MODEM
  60.  6)    B>FIND FILE.ASM \M7
  61.  7)    B>FIND MAST.CAT MOD|BYE
  62.  8)    B>FIND *.ASM HELLO
  63.  9)    B>FIND MAST.LST .A?M
  64. 10    B>FIND HELLO.DOC MDM712[N]      or [N or [n] or [n
  65. 11)    B>FIND MAST.LST MDM7 (CTL-P)    control-P to operate printer
  66. 12)    B>FIND MAST.CAT .COM >NEW.CAT    the > indicates disk file
  67. 13)    B>FIND HELLO.DOC process the file >FILE.TYP[n]
  68.  
  69.      1)  Displays a short "built in" instruction guide.
  70.     2)  Same as 1).
  71.     3)  Prompts for a string to find.  If string is in lower-case it
  72.         will display lines only with the same lower-case chars.
  73.         If string is upper-case, will show all lines having the
  74.         string, whether upper-case or lower-case or mixed case.
  75.     4)  Typical use of the program.  Displays all lines with the
  76.         sequential characters MODEM or modem.
  77.     5)  Using the "_" (underline) character fakes a tab key.  Just
  78.         those lines with "(TAB)MODEM" or "(TAB)modem" are shown.
  79.     6)  Using the "\" (reverse slant) fakes a LF character.  This
  80.         allows strings appearing only at the first of the line
  81.         to  be found.  In this example all files starting with
  82.         M7 would be found, without the '\', all files containing
  83.         M7 would be found, including MDM7 files, etc.  If look-
  84.         in a file with a group of messages, all 'To: ' could be
  85.         found via '\TO: ' and would only look at the start of
  86.         the line.  Or all files in MAST.CAT starting with 'M'
  87.         could be found with '\M', etc.  Gives FIND52 a positive
  88.         capability of finding strings or characters known to ap-
  89.         pear at the beginning of a line.
  90.     7)  Using the "|" (vertical bar) character permits concurrent
  91.         search/display of several strings of characters.  In
  92.         this case, all lines containing either MOD or BYE (or
  93.         same strings in lower case) will be displayed.
  94.     8)  Wildcards may be used.  In this case, the name of each file
  95.         is printed prior to being searched.
  96.     9)  '?' may be used as a wildcard in the search field.
  97.        10)  If [N] is included, line numbers will be added.  This is
  98.         similar to using PIP.COM and including the [N] option,
  99.         except the line numbers shown here are those containing
  100.         the requested string. 
  101.        11)  Turns the printer on to make a quick hard copy of results.
  102.         If pagination is needed/preferred, make a disk copy and
  103.         use a normal paginating program like LISTT.
  104.        12) A disk file can be made, using the '>' character.  (This is
  105.         needed to isolate the string area, permitting spaces to
  106.         be used in the string.
  107.        13) Strings can be used with spaces between words.  Shows a disk
  108.         file will be made, with line numbers.
  109.  
  110.  
  111. GENERAL COMMENTS:
  112. ----------------
  113.      This program is especially useful with the MAST.CAT catalog program
  114. as it can find files where only a few characters are used.  For instance
  115. the user knows he has some modem programs called MODEM7 or MDM7 or some-
  116. thing, so he looks for:
  117.  
  118.         A>FIND MAST.CAT DEM7|DM7|MOD
  119.  
  120.      He may also want to find all files with .ASM, .AQM and .COM so he
  121. can make a new disk file:
  122.  
  123.         A>FIND MAST.CAT .ASM|.AQM|.COM >CAT.NEW
  124.  
  125.      He could then use XCAT to make a cross-reference listing, although
  126. it will be a small nuisance:
  127.  
  128.     1) Rename the existing MAST.CAT temporarily to ZMAST.CAT
  129.     2) Rename CAT.NEW (or whatever name was used) to MAST.CAT
  130.     3) Use the editor to put at least () for an "ignore file" at
  131.           the start (XCAT cannot work otherwise).
  132.     4) Use XCAT which makes a file named MAST.LST.
  133.     5) Rename all files involved to whatever the user prefers,
  134.           restoring the original MAST.CAT file.
  135.  
  136.      Adding line numbers is occasionally beneficial since it shows where
  137. in the file that line is located.  This can be useful for finding errors
  138. in assembly level source code that are hard to find with an editor, or
  139. to show the concentration of certain groups of characters in a file.
  140.     
  141.      FIND52 may also be used with address files or large message banks,
  142. to find all occurrences of similar names, or similar streets, or similar
  143. cities, purchase dates, product names, etc. etc. etc.  (In this case the
  144. '\' character to look only at the beginning of a new line is frequently
  145. of value.
  146.  
  147.      The ability to make a disk file (plus concurrent searching for a
  148. variety of different strings separated by a '|' character), gives FIND52
  149. a very powerful feature.
  150.                     - Irv Hoff
  151.