home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / dos_util / histu.zip / HISTU.DOC < prev    next >
Text File  |  1993-07-14  |  4KB  |  106 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                                    HISTU.BTM
  7.            Free 4DOS utility: command history duplicate entry deleter
  8.                           Version 1.00 - July 14, 1993
  9.                                     (c) 1993
  10.                                        by
  11.                              David Daniel Anderson
  12.                                    Reign Ware
  13.  
  14.  
  15.  
  16.  
  17.  
  18. HISTU, with the help of three free included external programs, removes all
  19. superfluous lines from the current 4DOS command history list.
  20.  
  21. Usage: HISTU
  22.  
  23. HISTU takes no parameters.
  24.  
  25. External programs needed are:
  26.  1) LINEN5- text file enumerator and un-enumerator, used to attach and
  27.     remove 5-digit line numbers so PDSORT can do its thing;
  28.  2) PDSORT- A Public Domain External Sort Program, used to sort and unsort
  29.     the history list so FDUPLINS can do its thing;
  30.  3) FDUPLINS- text file duplicate line deleter, used to delete the superfluous
  31.     lines.
  32.  
  33.  I include each of these in separate utility packages, which I have bundled
  34.  into one "large" collection. If any part is missing, I suggest the following:
  35.  
  36.   1) look for the missing pieces at the same place you got this piece;
  37.   2) download the original collection (RWUTLS??.ZIP) from CHANNEL 1 (r) BBS,
  38.      at (617) 354-8873 (v.32bis 14.4: 617-354-5776);
  39.   3) contact me, and tell me what disk size you prefer (I prefer CHANNEL 1);
  40.   4) try to improvise with what you can obtain or create yourself.
  41.  
  42. {-----------------------------------------------------------------------------}
  43.  
  44. The 15 steps HISTU follows are:
  45. (4DOS exclusive commands are indicated by a -, external programs by an *.)
  46.  
  47.   1) -HISTORY >>#_HLIST#
  48.       Writes the command history list to a temporary file.
  49.  
  50.   2) -SCRPUT %_ROW 1 BRI RED ON BLA *** HISTORY WAS %@FILESIZE[#_HLIST#] BYTES,
  51.       Reports on the current size of the history (I don't think that the
  52.       filesize is actually the history size, but an indication anyway).
  53.  
  54.   3)  ECHO.
  55.       Writes a blank line.
  56.  
  57.   4) *LINEN5 #_HLIST# #_HSORT#
  58.       Adds 5-digit line numbers to the temporary history list file so it
  59.       can be sorted and unsorted.
  60.  
  61.   5) *PDSORT #_HSORT# #_HLIST# 6:128 1:6
  62.       Sorts the history list.
  63.  
  64.   6)  DEL #_HSORT#
  65.       Deletes a temporary file.
  66.  
  67.   7) *FDUPLINS #_HLIST# #_HSORT# /D5
  68.       Removes the duplicated lines, ignoring case differences, leaving only
  69.       non-duplicated lines.  (No lines are lost, one of each is saved.)
  70.  
  71.   8) *PDSORT #_HSORT# #_HLIST# 1:6
  72.       Resorts the history list.
  73.  
  74.   9)  DEL #_HSORT#
  75.       Deletes a temporary file.
  76.  
  77.  10) *LINEN5 #_HLIST# #_HSORT# /R
  78.       Removes the previously added line numbers from a temporary file.
  79.  
  80.  11) -HISTORY /F
  81.       Flushes the command history list.
  82.  
  83.  12) -HISTORY /R #_HSORT#
  84.       Reads the command history list from a temporary file.
  85.  
  86.  13) -SCRPUT %_ROW 1 BRI RED ON BLA *** HISTORY IS %@FILESIZE[#_HSORT#] BYTES.
  87.       Reports on the new size of the history.
  88.  
  89.  14)  ECHO.
  90.       Writes a blank line.
  91.  
  92.  15)  DEL #_HLIST# #_HSORT#
  93.       Deletes the temporary files.  (Although not necessarily a 4DOS exclusive
  94.       command, not all command interpreters - notably old versions of MS-DOS's
  95.       COMMAND.COM, allow multiple files to be specified on the command line.)
  96.  
  97.  
  98. 4DOS (r) is a registered trademark of JP Software Inc.  Other brand and product
  99. names are trademarks of their respective owners.
  100.  
  101. NOTE: This may work, with modifications, with other command history programs.
  102.       I can not, and probably will not, test it.  However, if you can and do,
  103.       I would appreciate hearing how it performs.  I will distribute any
  104.       modified copies you send me (on disk or simply a printed source listing).
  105.  
  106.