home *** CD-ROM | disk | FTP | other *** search
/ Best Objectech Shareware Selections / UNTITLED.iso / boss / util / dos / 003 / dosnix.doc < prev    next >
Text File  |  1992-04-21  |  64KB  |  2,128 lines

  1. ~
  2.  
  3.       DOSNIX.DOC (this file) has been keyed for use with HELP.BAT and
  4.     READ.  For on-line help merely type "help" and the name of the subject
  5.     with which you want help.  To search for subjects while in READ, begin
  6.     the search string with a ~ (tilde).
  7.  
  8.       For help from anywhere on your system, READ.EXE and HELP.BAT should 
  9.     be in a directory pointed to by the PATH command and you should put 
  10.     the full path name for DOSNIX.DOC in HELP.BAT.  For example: 
  11.  
  12.             READ +\~%1 C:\DOSNIX\DOSNIX.DOC
  13.  
  14.  
  15.  
  16.                 HELP INDEX
  17.  
  18.  
  19.         Introduction            LS
  20.         General                    MV
  21.         STDIN                    MVDIR
  22.         STDOUT                    READ
  23.         Commmands            RM
  24.             APP                 RN
  25.             CAT                SGREP
  26.             CHMOD                SPLIT
  27.             CLR                TEE
  28.             CP                TOLOWER 
  29.             CPDIR                TOUCH
  30.             DB                TOUPPER
  31.         EDC                WC
  32.         FFIND                Registration
  33.         GET
  34.  
  35.  
  36.  
  37. ~introduction
  38.  
  39.  
  40.                             DOSNIX ver. 0.94k
  41.                      Copyr. 1990,1991 by  G. Vrooman
  42.                           All rights reserved.
  43.  
  44.  
  45.         DOSNIX is a collection of UNIX style file management and text
  46.     utilities which will increase the power and flexibility of your
  47.     system.  DOSNIX provides many of the features which UNIX users
  48.     take for granted along with some features not even found on UNIX
  49.     systems.  It is not a UNIX clone but it is very compatible with UNIX 
  50.     conventions.  Users who are familiar with UNIX will have no trouble
  51.     learning DOSNIX.  Other users may find DOSNIX a good tool for learning 
  52.     UNIX.  Some of the programs included with DOSNIX are:
  53.  
  54.  
  55.     CHMOD -    This version of the UNIX CHMOD command has been adapted
  56.              to work with MSDOS file attributes.  It will allow you
  57.              to change the attributes of any file and allow you to
  58.              create read only, hidden and system files.
  59.  
  60.     CLR -      A utility which will allow you to customize your screen 
  61.          colors from the command line.  CLR will work properly with or
  62.          without ANSI.SYS.
  63.  
  64.     CP -       The UNIX counterpart of the DOS COPY command.  CP will
  65.              allow you to copy hidden and system files, and the DOSNIX
  66.              version will not overwrite existing files without warning
  67.              you.  CP can handle wild cards and multiple arguments and
  68.          will even allow you to format a new floppy disk if the first
  69.          one gets filled up.  CP also has options to utilize the archive 
  70.          bit or to copy files interactively.
  71.  
  72.     DB -       The famous "delete but" command will delete all except
  73.              specified files.  This command is not UNIX but it is a
  74.              great tool for cleaning up around ZIP, ARC and other archive
  75.              files.
  76.  
  77.     EDC -      Easy Directory Change.  This utility will allow you to
  78.          change directories without typing out long path names.
  79.          EDC can also be used to display a visual directory tree
  80.          on your screen.
  81.  
  82.     FFIND -    FFIND is a file locator in the tradition of the UNIX FIND
  83.              command.  Although FFIND does not have the power and scope
  84.              of the UNIX version, it is much easier to use.  FFIND will
  85.              locate files on any drive and will accept wild cards.  It
  86.              will also locate hidden and system files and has options
  87.              to remove unwanted files.
  88.  
  89.  
  90.  
  91.  
  92.  
  93.     LS -       The venerable UNIX directory lister.  LS has been spruced 
  94.          up and given another sort and two new display modes.  LS will 
  95.          now display directories sorted by file size as well as name, 
  96.          extension or date.  LS can list files in one, two, four or five 
  97.          column formats, sorted by row or by column, and offers a choice 
  98.          of upper or lower case output.  LS also offers reverse sorting
  99.          and a choice of switch characters. Default options can be set 
  100.          from the environment.
  101.  
  102.  
  103.     MV -       A fast powerful file mover, MV is used to relocate files
  104.              without performing separate COPY and  DEL commands.  MV can
  105.              be used to move files to any directory or to any drive.
  106.  
  107.     MVDIR -    The UNIX directory move utility.  MVDIR will relocate
  108.          complete directory trees and this version will even
  109.          move them to another drive.
  110.  
  111.     READ -     A highly modified version of the UNIX PG or MORE command,
  112.             READ is a handy text file viewer which will recognize both UNIX 
  113.          and keypad commands and will read from STDIN or directly from
  114.          files.  
  115.  
  116.     RM -       More powerful than the DOS DEL command, this utility
  117.              will remove complete directory structures and is great
  118.              for erasing floppies.  Unlike some UNIX versions, RM
  119.              will warn you before doing anything drastic.
  120.  
  121.  
  122.         DOSNIX also includes versions of the CAT, TEE and TOUCH commands.
  123.  
  124.  
  125.  
  126.  
  127. ~general
  128.  
  129.  
  130.     INSTALLING DOSNIX:
  131.  
  132.       DOSNIX is intended primarily for hard drives although    individual 
  133.     DOSNIX utilities can be copied to a floppy disk.  To install DOSNIX 
  134.     on your hard drive you can copy the files to any convenient directory,
  135.     such as C:\DOSNIX and add the directory to the PATH statement in your
  136.         AUTOEXEC.BAT file.  If you don't have an AUTOEXEC.BAT file you can 
  137.     make one with the following two lines:
  138.  
  139.                         PATH = C:;C:\DOSNIX
  140.                         PROMPT $P$G
  141.  
  142.     This will get you up and running with DOSNIX.
  143.  
  144.  
  145.     DOSNIX OPTIONS:
  146.  
  147.       Most DOSNIX commands have a simple format which can be enhanced by 
  148.     the use of UNIX style option strings.  The option string is always 
  149.     the first argument after the command and usually begins with a "-".  
  150.     See the Command Summary for the options available with each command.
  151.  
  152.       If you are used to MSDOS switches and find this awkward you can 
  153.     insert the following line in your AUTOEXEC.BAT file:
  154.  
  155.         SET SWITCH=/     (No space before or after "=")
  156.  
  157.     All commands except CHMOD and READ will then recognize a "/" as an 
  158.     option delimiter.  If you don't use this feature, you can use slashes 
  159.     in path names, as in UNIX, and they will be converted to back slashes.
  160.  
  161.  
  162.  
  163.     INSTANT HELP:
  164.  
  165.       This document has now been keyed for quick command searches and
  166.     a HELP.BAT file has been included.  To obtain on-line help, type 
  167.     "help" and the name of the subject with which you want help.  In
  168.     addition, a brief summary of most commands can be obtained by typing 
  169.     the name of the command followed by a "-?". 
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.     USING DOSNIX:
  177.  
  178.       DOSNIX is based on UNIX although the author has simplified some 
  179.     commands and enhanced others.  Other commands have been modified
  180.     slightly to make them more compatible with MSDOS. If you are familiar 
  181.     with UNIX you should have no problem with DOSNIX. If you are not 
  182.     familiar with UNIX, books on the subject are available in most book 
  183.     stores.  My own personal favorite, if you can still find it, is:
  184.  
  185.                 UNIX SYSTEM V PRIMER
  186.                 Waite, Martin & Pratha
  187.                 Howard W. Sams & Co., Inc.
  188.  
  189.     This book offers a lightly humorous treatment of UNIX and much of it 
  190.     is applicable to DOSNIX.
  191.  
  192.       DOSNIX has a great many options and features, which can be 
  193.     bewildering to the novice user.  Pick out the commands and options 
  194.     you need the most and get familiar with them before moving on.  LS 
  195.     is a great directory lister and it is a lot fun to play around with, 
  196.     but the -l option is all most people  will ever need.  The same is 
  197.     true with other commands. The options are there if you need them but 
  198.     don't feel you need to learn every one.
  199.  
  200.       You can experiment with DOSNIX by making a scratch directory or 
  201.     floppy and playing around with different commands. This procedure is 
  202.     highly recommended for destructive commands such as RM and DB.
  203.  
  204.  
  205.     COMPATIBILITY:
  206.  
  207.       DOSNIX was written and tested using an XT clone with Phoenix BIOS 
  208.     and MSDOS 3.1 and 3.3.  It was written very conservatively and should 
  209.     be upwardly compatible with with MSDOS 4.x, 5.x and most AT and 386
  210.     class machines.  Compatibility with MSDOS 2.x is not guaranteed.
  211.     Some utilities, such as READ and CLR, use BIOS level screen and 
  212.     keyboard functions and require an IBM compatible BIOS.  Because all 
  213.     utilities use small or medium memory models, they should not require 
  214.     more than 192k of memory to run. 
  215.  
  216.  
  217.     NOTE:
  218.  
  219.     UNIX is a registered trademark of AT&T Corporation.
  220.     MSDOS is a registered trademark of Microsoft Corporation.
  221.  
  222.  
  223.  
  224. ~stdin  ~stdout
  225.  
  226.  
  227.             STANDARD INPUT (STDIN) AND STANDARD OUTPUT (STDOUT)
  228.  
  229.  
  230.       DOSNIX utilities make extensive use of STDIN and STDOUT.  STDIN
  231.     is the keyboard unless you decide to redirect it.  STDOUT is the
  232.     screen unless you decide to redirect it.  Redirection is done by
  233.     using the MSDOS operators; <, >, >> and |.
  234.  
  235.     <     used with a program that normally reads from STDIN.  It 
  236.         tells MSDOS to use the contents of a file for STDIN.
  237.         For example: 
  238.  
  239.             more < dosnix.doc
  240.  
  241.           
  242.     >    writes STDOUT to a file.  For example:
  243.  
  244.             cat dosnix.doc
  245.  
  246.         writes DOSNIX.DOC to the screen, while
  247.  
  248.             cat dosnix.doc > another.doc
  249.  
  250.         copies DOSNIX.DOC to ANOTHER.DOC.
  251.  
  252.  
  253.     >>    appends STDOUT to an existing file or writes STDOUT
  254.         to a new file.  For example:
  255.  
  256.             cat quickref.doc >> dosnix.doc
  257.  
  258.         appends QUICKREF.DOC to DOSNIX.DOC.  Unfortunately
  259.         this operator will leave an unwanted CTRL-Z between
  260.         the two files.  For this reason, DOSNIX includes an 
  261.         APP command.
  262.  
  263.  
  264.     |    The pipeline operator. Uses STDOUT as STDIN for a
  265.         second program.  For example:
  266.  
  267.             cat *.doc | read
  268.  
  269.         pipes all files with an extension of .DOC to READ.
  270.  
  271.  
  272.  
  273.       UNIX and DOSNIX provide an additional command, TEE, which
  274.     will write STDOUT to the screen and store it in a file at
  275.     the same time.  For example:
  276.  
  277.             cat dosnix.doc | tee another.doc
  278.  
  279.     writes DOSNIX.DOC to the screen and stores it in ANOTHER.DOC.
  280.  
  281.  
  282.  
  283. ~commands
  284.  
  285.  
  286.                         LIST OF DOSNIX COMMANDS
  287. -------------------------------------------------------------------------------
  288.  
  289.  
  290.         APP             append standard input to file(s).
  291.  
  292.         CAT             Copy text file(s) to standard output.
  293.  
  294.         CHMOD           Modify attribute(s) of file.
  295.  
  296.         CLR             Set screen foreground, background and border colors.
  297.  
  298.         CP              Copy file to new file or directory.
  299.  
  300.         CPDIR           Copy directory and all subdirectories. *
  301.  
  302.         DB              Delete all files except specified files.
  303.  
  304.     EDC        Easy Directory Change.
  305.  
  306.         FFIND           Find all copies of file in specified path.
  307.  
  308.         GET             Find all filenames containing specified string. *
  309.  
  310.         LS              List contents of directory.
  311.  
  312.         MV              Move file to new file or directory.
  313.  
  314.         MVDIR           Move directory and all subdirectories to new location.
  315.  
  316.         READ            Display text file in page format.
  317.  
  318.         RM              Remove file(s).
  319.  
  320.         RN              Rename file or directory.
  321.  
  322.     SGREP        Search  text file(s) for specified string. *
  323.  
  324.     SPLIT        Split a text file into several smaller files. *
  325.  
  326.         TEE             Copy standard input to standard output and file(s).
  327.  
  328.         TOLOWER         Convert standard input to lower case.
  329.  
  330.         TOUCH           Modify file time and date.
  331.  
  332.         TOUPPER         Convert standard input to upper case.
  333.  
  334.     WC        Count lines, words and characters in a file. *
  335.  
  336.  
  337.         * DOSNIX ver. 1.2k
  338.  
  339.  
  340.  
  341.  
  342.  
  343.                         SUMMARY OF DOSNIX COMMANDS
  344. ------------------------------------------------------------------------------
  345. ~app
  346.  
  347.  
  348.     NAME:
  349.  
  350.     APP     Append standard input to file.
  351.  
  352.  
  353.     SYNTAX:
  354.  
  355.     app  file1 [file2..file5]               Appends standard input to up 
  356.                         to five files.
  357.  
  358.  
  359.  
  360.     DESCRIPTION:
  361.  
  362.       APP is a non-UNIX command meant to replace the DOS ">>" operator.  
  363.     Using ">>" to append files will not remove the CTRL-Z from the end of 
  364.     the first file before appending, but using APP will.  APP can be  used
  365.     with the dos "|" operator and any command which writes to standard 
  366.     output.  For example:
  367.  
  368.                 cat file1 file2 | app file3
  369.  
  370.     appends the output of CAT to file3.  See CAT.
  371.  
  372.                 app < file1 file2     
  373.  
  374.     appends file1 to file2.
  375.  
  376.     WARNING:  Do not use "app < file1 > file2".  This will erase file2.
  377.  
  378.     APP is meant for use with text files only and use with binary files 
  379.     is not recommended.
  380.  
  381.  
  382.  
  383. ~cat
  384.  
  385.  
  386.     NAME:
  387.  
  388.     CAT     Copy text file(s) to standard output.
  389.  
  390.  
  391.     SYNTAX:
  392.  
  393.  
  394.     cat                             Copies standard input to standard 
  395.                     output.
  396.  
  397.     cat file1                       Copies file1 to standard output. 
  398.                     Usually the screen.
  399.  
  400.     cat file1 file2 > file3         Concatenates file1 and file2 and 
  401.                     stores in file3.
  402.  
  403.  
  404.  
  405.  
  406.     DESCRIPTION:
  407.  
  408.       CAT reads one or more files and copies them to STDOUT.  If no input 
  409.     file is given, CAT will read STDIN until a CTRL-Z is found.  For 
  410.     example:
  411.  
  412.                         cat *.c > csource.txt
  413.  
  414.     will concatenate all files with an extension of .C and store
  415.     them in CSOURCE.TXT.
  416.  
  417.                         cat file1 file2 | app file3
  418.  
  419.     concatenates file1 and file2 and appends the result to file3.
  420.  
  421.                         cat > temp
  422.  
  423.     stores whatever is typed on the keyboard in TEMP and is similar to the 
  424.     DOS command COPY CON TEMP.  CTRL-Z can be used to terminate this 
  425.     operation.
  426.  
  427.     Some versions of CAT will copy the CTRL-Z at the end of    each file, 
  428.     leaving you stuck with a lot of unwanted CTRL-Z's in your new file.  
  429.     This version wont.
  430.  
  431.     CAT is meant for use with text files only and use with binary files 
  432.     is not recommended.
  433.  
  434.  
  435.  
  436. ~chmod
  437.  
  438.  
  439.     NAME:
  440.  
  441.     CHMOD   Change attribute(s) of a file.
  442.  
  443.  
  444.     SYNTAX:
  445.  
  446.     chmod [+x] file1                Adds attribute x to file1
  447.  
  448.     chmod [-x] file1                Removes attribute x from file1
  449.  
  450.  
  451.  
  452.     ATTRIBUTES:
  453.  
  454.     +a                              Set archive bit.
  455.     -a                              Clear archive bit.
  456.     +h                              Add hidden attribute.
  457.     -h                              Remove hidden attribute.
  458.     +r                              Add read only attribute.
  459.     -r                              Remove read only attribute.
  460.     +s                              Add system attribute.
  461.     -s                              Remove system attribute.
  462.  
  463.  
  464.  
  465.     DESCRIPTION:
  466.  
  467.       CHMOD is used to modify the attributes of a file.  Attributes can 
  468.     be grouped together in any sequence but each attribute must be 
  469.     preceded by a "+" or a  "-".  For example:
  470.  
  471.                         chmod -a *.*
  472.  
  473.     removes the archive bit from all files in the current directory,
  474.  
  475.                         chmod -a+r list.txt
  476.  
  477.     removes the archive bit and makes LIST.TXT read only,
  478.  
  479.                         chmod +h+s widget.com
  480.  
  481.     makes WIDGET.COM a hidden, system file.
  482.  
  483.  
  484.  
  485. ~clr
  486.  
  487.  
  488.     NAME:
  489.  
  490.     CLR   Set foreground, background and border colors.
  491.  
  492.  
  493.  
  494.     SYNTAX:
  495.  
  496.     clr                Clears screen without resetting 
  497.                     attributes.
  498.  
  499.     clr [-ab] fgnd [bkgnd [brdr]]   Sets screen foreground, background
  500.                     and border colors.
  501.  
  502.  
  503.     OPTIONS:
  504.  
  505.         
  506.     a        ANSI compatible mode.
  507.                 
  508.     b               Set foreground Bold attribute to ON.
  509.  
  510.  
  511.  
  512.     DESCRIPTION:
  513.  
  514.       CLR sets the screen foreground, background and border colors to 
  515.     those specified by the user.  The following colors are supported:
  516.  
  517.         BLACK   RED     GREEN   YELLOW  AMBER
  518.  
  519.         BLUE    MAGENTA CYAN    WHITE
  520.  
  521.     Because yellow is high intensity amber, it is impossible to have a 
  522.     yellow background.  Border colors will vary with the type of monitor.
  523.  
  524.       If only a foreground color is specified the background color 
  525.     defaults to black.  The border color always defaults to the background 
  526.     color.  To change the background color you need to specify the 
  527.     foreground color.  To change the border color you need to specify 
  528.     foreground and background colors.
  529.  
  530.       For ease of use CLR will recognize the first three letters of any 
  531.     color name.  For example:
  532.  
  533.                         clr yel
  534.  
  535.     sets the foreground color to yellow with a black background and border,
  536.  
  537.                         clr whi blu
  538.  
  539.     sets the foreground color to white and the background and border 
  540.     colors to blue, and
  541.  
  542.                         clr red whi red
  543.  
  544.     sets the foreground color to red, the background color to white and 
  545.     the border color to red.
  546.  
  547.  
  548.  
  549.  
  550.  
  551.       The -b option sets the intensity of the foreground color to high.  
  552.     For example:
  553.  
  554.                         clr -b red
  555.  
  556.     sets the foreground color to high intensity red.
  557.  
  558.       If the screen is cleared after using CLR, and ANSI.SYS is not 
  559.     installed, the screen will return to normal. This can be avoided by 
  560.     using CLR without arguments to clear the screen, or by installing 
  561.     ANSI.SYS.
  562.  
  563.       If ANSI.SYS is installed, CLR will detect it and generate the needed 
  564.     escape codes.  A -a option has been provided to force ANSI mode if 
  565.     needed.  
  566.  
  567.  
  568.  
  569.  
  570. ~cp
  571.  
  572.  
  573.     NAME:
  574.  
  575.     CP      Copy file to new file or directory.
  576.  
  577.  
  578.  
  579.     SYNTAX:
  580.  
  581.     cp [-abcfinopst] file1 file2    Copies file1 to file2
  582.  
  583.  
  584.         cp [-abcfinopst] file1 [file2..filen] dir
  585.  
  586.                     Copies any number of files to 
  587.                     directory.
  588.  
  589.         cp [-abcfinopst] dir1 dir2      Copies files in dir1 to dir2.
  590.  
  591.     cp -m source dest1 [dest2..destn]
  592.  
  593.                           Makes multiple copies of source.
  594.                     Destination may  be  either file or
  595.                     directory.
  596.  
  597.  
  598.     OPTIONS:
  599.  
  600.     a               Copy hidden and system files.  Prompt
  601.                         before overwriting protected files.
  602.         b               Copy only files with archive bit set.
  603.         c               Clear archive bits after copying.
  604.         f               Copy hidden and system files.  Overwrite
  605.                         protected files without prompting.
  606.         i               Interactive mode. Prompts before copying.
  607.         m               Make multiple copies of single file.
  608.         n               No delete. Do not overwrite existing files.
  609.         o               Overwrite existing files without prompting.
  610.                         Does not overwrite protected files.
  611.         p               Preserve file attributes when copying.
  612.         s               Copy files without echoing to screen.
  613.         t               Update file time and date when copying.
  614.  
  615.  
  616.  
  617.     DESCRIPTION:
  618.  
  619.       CP copies one or more files to a new file or directory. If more 
  620.     than one source file is specified or wildcards are used, the last  
  621.     argument must specify an existing directory or an error  will  occur. 
  622.     If a directory is used as a source, all files in the directory will 
  623.     be copied but subdirectories will not be copied.
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.       Each file is echoed to the screen as it is copied and existing  
  631.     files  are not overwritten  without prompting.  If an existing file 
  632.     is protected the user will be notified and prompted a second time 
  633.     before the file is overwritten. Options are provided to override 
  634.     these features when desired.
  635.  
  636.       If a Disk Full error occurs while copying files to a removable 
  637.     device, CP will prompt the user for a new diskette.  The user may 
  638.     either continue, format a new disk or abort at this point.  If a new 
  639.     disk is inserted, CP will create the directory if needed. To format 
  640.     disks, CP needs    to access COMMAND.COM and FORMAT.COM, so set COMSPEC 
  641.     to point to your copy of COMMAND.COM and make sure FORMAT.COM is in a 
  642.     directory pointed to by PATH.
  643.  
  644.       The -i option will prompt the user for a yes or no answer before 
  645.     copying each file.  Used with wildcards or directory names this option 
  646.     provides an interactive method of copying files.
  647.  
  648.       Hidden and system files can be copied using the -a option or the 
  649.     -f option.  If the -f option is used all existing files, even 
  650.     protected files, will be overwritten without prompting the user.
  651.  
  652.       The -o option can be used overwrite existing files but will not 
  653.     overwrite protected files.  If the -n option is used, no files will 
  654.     be overwritten and the user will not be prompted.  The -n option 
  655.     overrides all other options in this respect.
  656.  
  657.       If the -s option is used, files will not be echoed to the screen 
  658.     when copying.  This option can be used with the -o, -f or -n options 
  659.     when no screen output is desired.
  660.  
  661.       Unlike the MV command, file attributes are not carried over and
  662.     the archive bit of the new file is set. The -p option can be used 
  663.     to preserve the attributes of the old file.
  664.  
  665.       In normal use CP will carry over the time and date of the old
  666.     file.  If the -t option is used, the new file will be stamped
  667.     with the current DOS time and date.
  668.  
  669.       CP can be used for backups with the -b option.  When this option 
  670.     is used, only  archive files are copied.  The -c option will clear 
  671.     the archive bit on both files after the copy is made.  For example:
  672.  
  673.             cp -bco *.* a:\
  674.  
  675.     copies only files in the current directory which have not been backed 
  676.     up.  The archive bits are cleared and any previously existing files 
  677.     on drive A are overwritten.
  678.  
  679.       Sometimes it is  necessary to  copy a  file to  several different 
  680.     drives or directories.  CP can be used with the  -m option to make 
  681.     as many copies of a file as needed.
  682.  
  683.  
  684.  
  685. ~cpdir
  686.  
  687.  
  688.     NAME:
  689.  
  690.     CPDIR   copy directory and all subdirectories. *
  691.  
  692.  
  693.  
  694.     SYNTAX:
  695.  
  696.     cpdir [-abcfnopst] dir1 dir2    Copies dir1 to dir2.
  697.  
  698.  
  699.     OPTIONS:
  700.  
  701.             a               Copy hidden and system files.  Prompt
  702.                             before overwriting protected files.
  703.             b               Copy only files with archive bit set.
  704.             c               Clear archive bits after copying.
  705.             f               Copy hidden and system files.  Overwrite
  706.                             protected files without prompting.
  707.             n               No delete. Do not overwrite existing files.
  708.             o               Overwrite existing files without prompting.
  709.                             Does not overwrite protected files.
  710.             p               Preserve file attributes when copying.
  711.             s               Copy files without echoing to screen.
  712.             t               Update file time and date when copying.
  713.  
  714.  
  715.  
  716.     DESCRIPTION:
  717.  
  718.       CPDIR copies a complete directory to either a new or existing
  719.     directory.  If the target directory does not exist a new directory 
  720.     will be created.  If the target directory does exist it will be used 
  721.     as the starting point. Note the difference between this and the MVDIR 
  722.     command.  Subdirectories will be created when the files are copied.
  723.  
  724.  
  725.       Options are identical to the the CP command with the exception
  726.     of the -i and -m options which are not used.
  727.  
  728.       If a Disk Full error occurs while copying files to a floppy disk,
  729.     CPDIR will prompt the user for a new diskette.  The user may either 
  730.     continue, format a new disk or abort at this point.  To format disks, 
  731.     CP needs to access COMMAND.COM and FORMAT.COM, so set COMSPEC to point
  732.     to your copy of COMMAND.COM and make sure FORMAT.COM is in a directory 
  733.     pointed to by PATH.  When the new diskette is formatted, CPDIR will 
  734.     create all the necessary directories and continue.
  735.  
  736.  
  737.         * DOSNIX ver. 1.2k
  738.  
  739.  
  740.  
  741. ~db
  742.  
  743.  
  744.     NAME:
  745.  
  746.     DB      Delete all files except specified files.
  747.  
  748.  
  749.     SYNTAX:
  750.  
  751.     db file1..filen                 Deletes all files in directory
  752.                                                 except specified files.
  753.  
  754.  
  755.     OPTIONS:        None
  756.  
  757.  
  758.  
  759.     DESCRIPTION:
  760.  
  761.       DB will delete all files in a directory except the files given as 
  762.     an argument.  Wildcards can be used in arguments but path names are 
  763.     not supported.  DB can only be used in the current directory.  For 
  764.     example:
  765.  
  766.                         db *.zip
  767.  
  768.     will delete all files that do not have an extension of .ZIP and, 
  769.     in fact, DB is an excellent tool for cleaning up around ZIP files 
  770.     and other archives.
  771.  
  772.       DB works by assigning a +h attribute to the specified files and 
  773.     then removing all normal files.  The remaining files are then 
  774.     "unhidden".  This can cause a problem  with previously existing 
  775.     hidden files.  If DB encounters any hidden files it, will safely 
  776.     abort leaving the directory unchanged.  You will then have to use RM.
  777.  
  778.         WARNING: DB can be a deadly weapon if used carelessly.  Use it only 
  779.     when you are sure of what you are doing.
  780.  
  781.  
  782.  
  783.  
  784. ~edc
  785.  
  786.  
  787.     NAME:
  788.  
  789.     EDC    Easy Directory Change.
  790.  
  791.  
  792.     SYNTAX:
  793.  
  794.     edc [-klmnqrst] [d:]dir1        Changes directory to dir1.
  795.  
  796.  
  797.  
  798.     OPTIONS:
  799.  
  800.         k  Do not pause when screen is full.
  801.         l  Scan drive and list directories.
  802.         m  Create directory and update path file.
  803.         n  Display directory tree without graphics.
  804.         r  Remove directory and update path file.
  805.         s  Scan drive. No screen output.
  806.         t  Display directory tree with graphics.
  807.         q  Quick scan.  Do not look for extensions.
  808.  
  809.  
  810.  
  811.     DESCRIPTION:
  812.  
  813.  
  814.       EDC allows you to change directories by entering only the directory 
  815.     name rather than the whole path name.  For example, if you have a 
  816.     directory  named \MODEM\FILES\ZIP you can reach the directory 
  817.     from anywhere on your drive by entering:
  818.  
  819.             edc zip
  820.  
  821.     instead of:
  822.  
  823.             cd \modem\files\zip
  824.  
  825.         If  EDC finds  more than one directory with the same name, it will 
  826.     display all directories found and  prompt you  to choose one.
  827.  
  828.  
  829.     EDC can also find directories if given just the first few letters of  
  830.     the name.  If  you  have a directory named \GAMES\POKER\BIGDECK, 
  831.     entering:
  832.  
  833.             edc big
  834.  
  835.     will  find it.
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.       To change to a directory on a different  drive, enter the drive spec 
  843.     and the directory name with no space or slash between them.  For 
  844.     example if you are currently using drive C and you wish to change  
  845.     to D:\GAMES\BOARD\CHECKERS you can enter:
  846.  
  847.             edc d:checkers
  848.         or
  849.  
  850.             edc d:check
  851.  
  852.     A drive spec can now be terminated by a semicolon as well as a colon.
  853.     This allows you to change drives without hitting the shift key.
  854.  
  855.  
  856.       To install EDC, copy EDC.EXE to the root directory of your boot 
  857.     drive or to any directory pointed  to by the DOS PATH parameter. 
  858.     Then enter:
  859.  
  860.             edc -s
  861.  
  862.        EDC will scan your disk drive for directories and store    them in a 
  863.     file named  PATH.EDC .  Because EDC refers to this file to find 
  864.     directories, it should remain in the root  directory of  your drive  
  865.     at all times. 
  866.  
  867.  
  868.           EDC needs to  have a unique copy of  PATH.EDC in the root directory 
  869.     of every drive with which it is used.  To scan other drives you can 
  870.     enter:
  871.  
  872.             edc -s d:
  873.  
  874.     where "d" is the letter of the drive you are scanning. If you
  875.     are using EDC with floppy disks it is sometimes more convenient to 
  876.     scan and change  the  directory in one step.  For example:
  877.  
  878.             edc -s a:text
  879.  
  880.     will  scan the  floppy disk in drive A and  change to a directory 
  881.     named TEXT.
  882.  
  883.       If a full path name or one of the standard  DOS directory symbols 
  884.     ("\",  "." or "..") is given, EDC will change directories immediately
  885.     without checking PATH.EDC.
  886.  
  887.       If the -t option is used, EDC will display the directory tree 
  888.     on your screen while it    is scanning.  For redirection to non-IBM
  889.     printers, the -n option will display the directory tree without
  890.     using graphics characters.  The -l option will display a list of 
  891.     directories instead of a tree.  The screen will pause after displaying 
  892.     each page of information unless the -k option is used.
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.       If none of your directory names have extensions you can use
  900.     the -q option with any of the above options for quicker scans.
  901.     For example:
  902.  
  903.             edc -sq    or    edc -tq
  904.  
  905.  
  906.        The -m and -r options can be used to create and remove directories.
  907.     Rules for path names are the same as for DOS and PATH.EDC will be 
  908.     updated after each change.  If other commands are used to create
  909.     and remove directories you will have to rescan the affected drive.
  910.  
  911.  
  912.  
  913.  
  914.  
  915. ~ffind
  916.  
  917.  
  918.     NAME:
  919.  
  920.     FFIND   Find all copies of file in specified path.
  921.  
  922.  
  923.     SYNTAX:
  924.  
  925.     ffind [-abdfiklmnr?] [path] filename    Finds all files in path with
  926.                             the same name.
  927.  
  928.     ffind -e "command {}" [path] filename   Executes DOS command when each
  929.                         file is located.
  930.  
  931.     OPTIONS:
  932.  
  933.     a               Include hidden and system files in search.
  934.         b               Batch mode, disable warning prompt.
  935.         d               Include directories in search.
  936.     e        Execute DOS command.
  937.         f               Include floppy drives in search.
  938.         i               Remove files interactively.
  939.     k        No highlights or screen pauses.
  940.         l               Display in long format, showing
  941.                         attributes, size, time and date.
  942.         m               Display totals for each directory.
  943.     n        Display output in lower case.
  944.         r               Remove files when found.
  945.         ?               Display help screen.
  946.  
  947.  
  948.  
  949.     DESCRIPTION:
  950.  
  951.       FFIND will search the specified path for all copies of a given 
  952.     file.  "path" should be a valid directory name or drive spec. If 
  953.     "path" is omitted the search will begin from the root directory of 
  954.     the current drive.  If "*:" is used for a path FFIND will search all 
  955.     available hard drives. Wild cards can be used in file names and all 
  956.     subdirectories will be searched. For example:
  957.  
  958.                 ffind *.bak
  959.         or
  960.                 ffind \ *.bak
  961.  
  962.         will search the entire current drive for all files named with
  963.         an extension of .BAK.
  964.  
  965.                 ffind d: temp
  966.  
  967.         will search all of drive D for all files named TEMP,
  968.  
  969.                 ffind *: temp
  970.  
  971.         will search all hard drives for all files named TEMP, and
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.         ffind \games poker.exe
  979.  
  980.         will search the directory \GAMES and all subdirectories for all files 
  981.     named POKER.EXE.
  982.  
  983.  
  984.       The -r option will delete files when found.  For example:
  985.  
  986.         ffind -r c:\ *.bak
  987.  
  988.     will search drive c for all files with an extension of .BAK and 
  989.     remove them.  The -i option is similar to the -r option except that 
  990.     the user is prompted before each file is removed.  The -r option 
  991.     provides an initial warning prompt before execution.  If you ever 
  992.     type "-r" when you really  meant to type "-l" you will appreciate 
  993.     the need for this.  The -b option will override this feature for 
  994.     unattended batch file operation.  This option is intended for use in
  995.     batch files only.  Don't use it from the keyboard, or some day you 
  996.     will type in "ffind -rb" when you least intend to.  
  997.  
  998.       FFIND will locate hidden and system files with the -a option  but 
  999.     the -r option cannot be used to remove protected files.  Use the -i 
  1000.     option to remove these files.
  1001.  
  1002.           The -l option can be used to display complete information on each 
  1003.     file located and the -k option will disable highlights and screen
  1004.     pauses, allowing the output to be redirected.
  1005.  
  1006.       The -m option will display the total number of matching files in 
  1007.     each directory along with the total number of bytes used.  For 
  1008.     example:
  1009.  
  1010.         ffind -almk c:\ *.* > disk.map
  1011.  
  1012.     will create a complete usage map of the user's hard disk and store 
  1013.     it in DISK.MAP.
  1014.  
  1015.       When "*:" is used as a drive spec, FFIND will ignore floppy drives 
  1016.     unless the -f option is used.  This eliminates the annoying wait
  1017.     on empty floppy drives.  Floppy drives can still be searched
  1018.     directly without using the -f option.
  1019.  
  1020.       A semicolon can now be used to terminate a drive spec in place
  1021.     of a colon.  In addition FFIND will consider ";;" equivalent to
  1022.     "*:" and search all drives.  These modifications save a few
  1023.     key strokes.
  1024.  
  1025.     NOTE: FFIND uses the MSDOS LASTDRIVE parameter to determine the 
  1026.     number of available drives. If FFIND attempts to search non-existent 
  1027.     drives insert the following line in CONFIG.SYS:
  1028.  
  1029.             LASTDRIVE = x
  1030.  
  1031.         where x is the letter of your last logical drive.
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.       FFIND now has a -e option which will cause the program to shell 
  1038.     to DOS and execute a command whenever a file is located.  The name 
  1039.     of the located file can be parsed into the command argument by 
  1040.     inserting a pair of braces wherever you want the file to be used.  
  1041.     For example:
  1042.  
  1043.             ffind -e "pkunzip {}" *.zip
  1044.  
  1045.     would unzip all the ZIP files on the current drive.  If a null
  1046.     argument is used,  FFIND will shell to DOS in the directory in
  1047.     which the file is located, giving you an opportunity to do
  1048.     whatever you want.  For example:
  1049.  
  1050.                 ffind -e "" test.txt
  1051.  
  1052.     The power of this option is limited only by your imagination.
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059. ~get
  1060.  
  1061.  
  1062.     NAME:
  1063.  
  1064.     GET     Find all file names containing specified string. *
  1065.  
  1066.  
  1067.     SYNTAX:
  1068.  
  1069.     get [-adfl?] [path] string       Finds all files in path having
  1070.                                         string as part of file name.
  1071.  
  1072.  
  1073.     OPTIONS:
  1074.  
  1075.     a               Include hidden and system files in search.
  1076.         d               Include directories in search.
  1077.     f        Include floppy drives in search.
  1078.         l               Display in long format, showing attributes, size, 
  1079.             time and date.
  1080.         ?               Display help screen.
  1081.  
  1082.  
  1083.  
  1084.     DESCRIPTION:
  1085.  
  1086.       GET will search the specified path for all files having the 
  1087.     specified string as part of the file name.  If an extension is 
  1088.     provided GET will locate only files with that extension, otherwise 
  1089.     GET will locate all files regardless of extension.  For example:
  1090.  
  1091.                         get modem
  1092.  
  1093.         will locate QMODEM.DOC, JMODEM.ZIP and MODEMS.TXT.
  1094.  
  1095.                         get ted.zip
  1096.  
  1097.         will locate TED.ZIP and TED12.ZIP but will ignore TED.COM.
  1098.  
  1099.       GET will locate hidden and system files with the -a option and
  1100.     the -l option can be used to display complete information on each 
  1101.     file located.  The -d option can be used to locate directories.  
  1102.     There are no options to remove files.  
  1103.  
  1104.       The "path" specification is identical to the FFIND command.  If 
  1105.     you are searching all drives, the output of GET can be quite long.  
  1106.     Try piping it to READ.  For example:
  1107.  
  1108.                          get *: modems | read -f
  1109.  
  1110.  
  1111.         * DOSNIX ver. 1.2k
  1112.  
  1113.  
  1114.  
  1115. ~ls
  1116.  
  1117.  
  1118.     NAME:
  1119.  
  1120.     LS      List contents of directory.
  1121.  
  1122.  
  1123.     SYNTAX:
  1124.  
  1125.       ls [-124acdefklnprtuxz?] [dir1]..[dirn]   Displays contents of dir1..dirn
  1126.  
  1127.       ls [-124acdefklnprtuxz?] [fil1]..[filn]   Lists fil1..filn
  1128.  
  1129.  
  1130.  
  1131.     OPTIONS:
  1132.  
  1133.     1               Display one entry per line.
  1134.     2        Display two entries per line with size and date.
  1135.     4        Display four entries per line showing size only.
  1136.         a               Display hidden and system files.
  1137.         c               Display files sorted down each column.
  1138.     d        Display file totals and free disk space. 
  1139.         e               Sort file names by extension.
  1140.         f               Display files only. Omit directories.
  1141.         k               Do not pause when screen is full.
  1142.         l               Display files in long format, showing
  1143.                         name, attributes, size, time and date.
  1144.     n        Display file names in lower case.
  1145.         p               Put a back slash after each subdirectory.
  1146.         r               Reverse order of sort.
  1147.         t               Sort files by time and date.
  1148.         u               Do not sort files.
  1149.     x        Display files sorted across screen.
  1150.     z        Sort files by size.
  1151.         ?               Display help screen.
  1152.  
  1153.  
  1154.  
  1155.     DESCRIPTION:
  1156.  
  1157.       LS displays the contents of a directory sorted across the screen 
  1158.     in five columns.  The arguments can be either files or directories. 
  1159.     If wildcards are used, all matching files will be listed.  Multiple
  1160.     arguments are accepted and more than one directory can be displayed.
  1161.     If no arguments are used, the contents of the current directory will
  1162.     be displayed.  If no options are used, -xpd will be assumed and file 
  1163.     totals will be displayed at the bottom of the listing.
  1164.  
  1165.           The -x option will display files sorted across the screen and
  1166.     is used in the default mode. The -c option will display files sorted 
  1167.     down each column rather than across each row.  If the  -1 (one) option 
  1168.     is used, one entry per line is displayed showing only the file name.
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.       If the -l option is used, one entry per line is displayed, showing 
  1176.     name, attributes, size of file in bytes, and time and date of last 
  1177.     modification.  A modified DOS format is used which is more readable 
  1178.     than the standard UNIX format.  Attributes displayed in this format 
  1179.     are:
  1180.  
  1181.                         <DIR>           Subdirectory.
  1182.                         A               Archive bit is set.
  1183.                         R               File is read only.
  1184.                         H               File is hidden.
  1185.                         S               File is system.
  1186.  
  1187.     At the  end of each display the size of the directory in bytes is
  1188.     shown. The size of any subdirectories is not included in this figure.
  1189.     Also shown is the remaining disk space.
  1190.  
  1191.       LS now has two new display formats.  The -2 option will display
  1192.     two entries per line showing file size and date and the -4 option
  1193.     will display four entries per line showing size only.  In these
  1194.     two modes the files are sorted down each column.  The -x option
  1195.     can be combined with either of these options to display files
  1196.     sorted horizontally.
  1197.  
  1198.  
  1199.           LS will pause after displaying one page of information. Typing "q" 
  1200.       at this point will terminate the program. Typing any other key will  
  1201.     continue the display.  The -k option will suppress this feature and 
  1202.     provide a continuous output which can be  redirected.  In addition,
  1203.     the -k option will eliminate any graphics characters, allowing the
  1204.     output to be redirected to a non-IBM printer.
  1205.  
  1206.  
  1207.       If the -a option is used, any hidden or system files contained in 
  1208.     the directory are also displayed.  The -f option will display file
  1209.     names only and omit any subdirectories.  The -p option will append a 
  1210.     back slash  to the end of each subdirectory name, allowing the user 
  1211.     to distinguish between files and  subdirectories.  This option will
  1212.     not work with the -l option.  
  1213.  
  1214.  
  1215.       The -t option will will sort files by time and date and can be used 
  1216.     with the -r option to display newest files first.  The -e option 
  1217.     will sort file names by extension and the -u option will provide 
  1218.     unsorted output if so desired.
  1219.  
  1220.  
  1221.       The -d option can be used to to display file totals at the end
  1222.     of each directory and the -n option will provide lower case output 
  1223.     if needed.
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.       LS can  be custom configured by setting the environment
  1230.     variable "LSCFG" to the desired options.  For example:
  1231.  
  1232.             set lscfg=le
  1233.  
  1234.     will cause LS to default to the long format, with files sorted by 
  1235.     extension, unless an option is specified on the command line. 
  1236.  
  1237.  
  1238.       LS is now EDC compatible.  If EDC is installed, LS will accept 
  1239.     partial directory names. LS will first look for an immediate directory
  1240.     with the specified name.  If no directory is found it will check 
  1241.     PATH.EDC for any matches.  If no matches are found it will then check
  1242.     for a file with the given name.  When using this feature the user is
  1243.     limited to one argument.  If more than one directory is specified on 
  1244.     the command line, PATH.EDC will not be searched.  This feature has 
  1245.     been made invisible so that LS can still be used as a stand-alone 
  1246.     directory lister.  As a result no error messages relating to EDC or 
  1247.     PATH.EDC will be displayed.
  1248.  
  1249.  
  1250.           This version of LS will not recursively list subdirectories but 
  1251.     the FFIND command can be used to obtain the same result.  For
  1252.     example:
  1253.  
  1254.         ffind -lm dirname *.*
  1255.  
  1256.         ffind -lm . *.*
  1257.  
  1258.  
  1259.  
  1260. ~mv
  1261.  
  1262.  
  1263.     NAME:
  1264.  
  1265.     MV      Move file(s) to new file or directory.
  1266.  
  1267.  
  1268.     SYNTAX:
  1269.  
  1270.     mv [-afnost?] file1 file2       Moves (renames) file1 to file2.
  1271.  
  1272.     mv [-afnost?] file1 [file2..filen] dir1
  1273.  
  1274.                     Moves any number of files to dir1.
  1275.  
  1276.     mv dir1 dir2                    Renames dir1 to dir2. dir1 and dir2 
  1277.                     must be in the same parent directory.
  1278.  
  1279.  
  1280.     OPTIONS:
  1281.  
  1282.     a               Move read only, hidden and system files.
  1283.                         Prompt before overwriting protected files.
  1284.         f               Move and overwrite all files without prompting.
  1285.         i               Interactive mode. Prompt before moving.
  1286.         n               No delete. Do not overwrite existing files.
  1287.         o               Overwrite existing files without prompting.
  1288.         s               Move files without echoing to screen.
  1289.         t               Update file time and date when moving.
  1290.         ?               Display help screen.
  1291.  
  1292.  
  1293.     DESCRIPTION:
  1294.  
  1295.       MV moves one or more files to a new file or directory. If more than 
  1296.     one source file is specified or wildcards are used, the last argument
  1297.     must  specify  an existing directory or an error will occur.  If a 
  1298.     directory is used as a source, all files in the directory will be
  1299.         moved but subdirectories will not be moved.
  1300.  
  1301.       Each file is echoed to the screen as it is moved and existing files
  1302.     are not overwritten  without prompting.  If an existing file is 
  1303.     protected the user will be notified and prompted a second time before 
  1304.     the file is overwritten. Options are provided to override these 
  1305.     features when desired.
  1306.  
  1307.       The -i option will prompt the user for a yes or no answer before 
  1308.     moving each file.  Used with wildcards or directory names this option 
  1309.     provides an interactive method of moving files.
  1310.  
  1311.  
  1312.  
  1313.  
  1314.       In normal use MV, ignores hidden and system files and prompts
  1315.     the user before moving read only files. Hidden and system files can 
  1316.     be moved using the -a option or the -f option.  The -a option will 
  1317.     move read only, hidden and system files without prompting but will 
  1318.     still prompt the user before overwriting protected files. If the -f 
  1319.     option is used all existing files, even protected files, will be 
  1320.     overwritten without prompting the user.
  1321.  
  1322.       The -o option can be used overwrite existing files without
  1323.     prompting but will not overwrite protected files.  If the -n option
  1324.         is used, no existing files will be overwritten and the user will not
  1325.         be prompted.  The -n option overrides all other options in this 
  1326.     respect.
  1327.  
  1328.       If the -s option is used, filenames will not be echoed to the 
  1329.     screen when moving.  This option can be used with the -o, -f or -n 
  1330.     options when no screen output is desired.
  1331.  
  1332.       In normal use MV will carry over the time and date of the old file.
  1333.     If the -t option is used, the new file will be stamped with the 
  1334.     current DOS time and date. Unlike the CP command, MV will also carry 
  1335.     over the attributes of the old file.
  1336.  
  1337.  
  1338.  
  1339.  
  1340. ~mvdir
  1341.  
  1342.  
  1343.     NAME:
  1344.  
  1345.     MVDIR   Move directory and all subdirectories to new location.
  1346.  
  1347.  
  1348.     SYNTAX:
  1349.  
  1350.     mv dir1 dir2                    Moves dir1 to dir2
  1351.  
  1352.  
  1353.  
  1354.     OPTIONS:
  1355.  
  1356.     s               Move files without echoing to screen.
  1357.         ?               Display help screen.
  1358.  
  1359.  
  1360.  
  1361.     DESCRIPTION:
  1362.  
  1363.       MVDIR will move a directory and all its subdirectories to the 
  1364.     specified target. If the target directory does not exist a new 
  1365.     directory will be created. If the target directory does exist a 
  1366.     directory will be created within the target directory having the 
  1367.     same name as the old directory.
  1368.  
  1369.       MVDIR has three modes of operation totally independent of user 
  1370.     input.  If both old and new directories are in  the same parent 
  1371.     directory, MVDIR will rename the old directory.  If old and new 
  1372.     directories are not in the same parent directory but reside on the 
  1373.     same drive, MVDIR will create the new directory structure, rename 
  1374.     the files and then remove the old directory. If old and new directories
  1375.         reside on different drives MVDIR will create the new directory 
  1376.     structure, copy the files over and then remove the old files and 
  1377.     directories.  If an error occurs in this last mode, such as a disk 
  1378.     full error, MVDIR will abort and leave the old directory intact.
  1379.  
  1380.  
  1381.  
  1382. ~read
  1383.  
  1384.  
  1385.     NAME:
  1386.  
  1387.     READ      Display text in page format.
  1388.  
  1389.  
  1390.     SYNTAX:
  1391.  
  1392.     read [-f][+#]                         Displays standard input one page 
  1393.                         at a time.
  1394.  
  1395.         read [+#][+\string] file1..filen    Displays contents of files  one 
  1396.                         page at a time.
  1397.  
  1398.  
  1399.     OPTIONS:
  1400.  
  1401.     -f              Store standard input in temporary file
  1402.                          before displaying.
  1403.  
  1404.         +###            Begin displaying at line ###.
  1405.  
  1406.     +\string    Begin displaying at first occurrence of string.
  1407.  
  1408.  
  1409.  
  1410.     DESCRIPTION:
  1411.  
  1412.       READ is a text file viewer which can read from STDIN like the
  1413.     DOS MORE command, or directly from a file.  For example:
  1414.  
  1415.             read < dosnix.doc
  1416.  
  1417.     and
  1418.  
  1419.             read dosnix.doc
  1420.  
  1421.     will both display DOSNIX.DOC.  Wild cards and multiple arguments
  1422.     can be used to view several files in sequence.  For example:
  1423.  
  1424.             read *.doc
  1425.  
  1426.     can be used to page through all .DOC files, and
  1427.  
  1428.             read whats.new quickref.doc
  1429.  
  1430.     will first read WHATS.NEW, then QUICKREF.DOC.
  1431.       
  1432.  
  1433.       When READ begins, it will display one page of text and then pause. 
  1434.     The user can then enter one of the following commands:
  1435.  
  1436.                 <space>         Toggle continuous scroll.
  1437.  
  1438.                 <PgDn>          Clear screen and display next page.
  1439.  
  1440.                 ^D, D, ]      Display next half page of text.
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.                 Enter or        Display next line of text.
  1447.                 Down Arrow
  1448.  
  1449.                 <PgUp>, ^B      Clear screen and display previous page.
  1450.  
  1451.                 ^U, U,  [       Move back one half page.
  1452.  
  1453.         Up Arrow    Move back one line.
  1454.  
  1455.         Right Arrow    Shift screen one tab stop right.
  1456.  
  1457.         Left Arrow    Shift screen one tab stop left.
  1458.  
  1459.                 H, Backspace    Display help page.
  1460.  
  1461.                 ^L, .           Rewrite current page.
  1462.  
  1463.                 Home            Move to beginning of file.
  1464.  
  1465.                 End or $        Move to end of file.
  1466.  
  1467.                 N             Display next file.
  1468.  
  1469.         P         Return to previous file.
  1470.  
  1471.         \        Search text for string.  Ignore case.
  1472.  
  1473.         |        Search text for string.  Match exact case.
  1474.  
  1475.         /        Search text for next occurrence of string.
  1476.  
  1477.                 -###            Move back ### lines.
  1478.  
  1479.                 +###            Move forward ### lines.
  1480.  
  1481.                 ###             Move to line number ###.
  1482.  
  1483.                 Q, Esc             Terminate the program.
  1484.  
  1485.  
  1486.  
  1487.       The escape key can be used to interrupt text searches and exit
  1488.     the help screen.  It will also terminate the program from the main
  1489.     menu.  F10 or Del can be used in place of Esc and  ^PgUp and ^PgDn
  1490.     can be used in place of Home and End.
  1491.  
  1492.       The number of the top line is displayed on the menu bar unless 
  1493.     the end of file message is visible, then the line number displayed 
  1494.     will be the last line of the file.  Unless the file is very small, 
  1495.     you can use PgUp to realign the last page and get rid of the message. 
  1496.  
  1497.       If the number keys are used to go to a line already on the screen, 
  1498.     the screen will scroll until the line is at the top.  Otherwise the 
  1499.     screen will clear and a new page will be displayed.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.       READ now has a unique method of utilizing the space bar.  
  1506.     Instead of displaying one page of text and halting, pressing 
  1507.     the spacebar will cause the text to scroll until the spacebar
  1508.     is pressed again.  This allows you to halt the display at any
  1509.     desired position.  The scroll rate can be adjusted by pressing 
  1510.     the up and down arrows while the text is moving.  
  1511.  
  1512.       Don't try to control the text with the arrow keys.  Use
  1513.     them to adjust the scroll rate then control the text with the 
  1514.     spacebar.
  1515.  
  1516.       From the main menu you can still use the arrow keys to scroll
  1517.     up and down.  Because READ resets the file pointer on any backward
  1518.     movement, using the up arrow for continuous scrolling can cause
  1519.     a lot of drive thrashing with fragmented files.  It is best used
  1520.     for small adjustments of the page. 
  1521.  
  1522.  
  1523.       Text searches can be done by typing a "\" or a "|".  You will then 
  1524.     be prompted to enter a search string.  READ will begin displaying ten 
  1525.     lines before the line containing the search string and the matching 
  1526.     line will be highlighted.  The "\" command will ignore differences 
  1527.     between upper and lower case.  The "|" command will find only strings
  1528.     having the exact case as the search string.  Typing a "/" will find
  1529.     the next occurrence of the string and will work with either of the
  1530.     two previous commands. Searches can not be done when reading from 
  1531.     standard input.
  1532.  
  1533.       If +\string is used as an option, READ will search the first 
  1534.     occurrence of "string" before displaying.  For example:
  1535.  
  1536.             read +\ffind dosnix.doc
  1537.  
  1538.     will scan DOSNIX.DOC for the first occurrence of "ffind" and
  1539.     begin displaying ten lines before the first matching line.
  1540.  
  1541.       Case sensitive searches can also be initiated from the command
  1542.     line.  Because "|" is a DOS operator it will be necessary to put
  1543.     the argument in quotes.  For example:
  1544.  
  1545.         read "+|FFIND" dosnix.doc
  1546.  
  1547.       READ can handle files containing up to 10,000 lines although text
  1548.     searches can be very slow on large files.
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.       When +### is used as an option, READ will begin displaying at 
  1556.     whatever line number is given after the plus sign.  For example:
  1557.  
  1558.         read +300 dosnix.doc
  1559.  
  1560.     will begin displaying at line 300.
  1561.  
  1562.  
  1563.       Output from other programs can be piped to READ using the "|"
  1564.         operator.  When displaying redirected input, search and    back scroll 
  1565.     commands are not available and lines longer than 80 columns will be 
  1566.     wrapped.  A '-f' option has been provided which will dump redirected 
  1567.     input into a temporary file before reading, making the full range of 
  1568.     commands available.  For example:
  1569.  
  1570.                         ffind -m c:\ *.* | read -f
  1571.  
  1572.         will allow the user to page through the output of FFIND which in 
  1573.     this case is a complete list of files on drive C.
  1574.  
  1575.  
  1576.       Typing "read" by itself with no arguments will echo whatever is
  1577.     typed on the keyboard.  This is also true for CAT and other 
  1578.     commands which are capable of reading STDIN.  This can be confusing  
  1579.     for novice users.  To get out of this mode type CTRL-Z followed
  1580.     by a carriage return.
  1581.  
  1582.  
  1583.  
  1584.  
  1585. ~rm
  1586.  
  1587.  
  1588.     NAME:
  1589.  
  1590.     RM      Remove file(s).
  1591.  
  1592.  
  1593.     SYNTAX:
  1594.  
  1595.     rm [-fis] file1...filen        Removes files.
  1596.  
  1597.     rm -r[fis] dir1..dirn          Completely removes directories.
  1598.  
  1599.  
  1600.  
  1601.     OPTIONS:
  1602.  
  1603.     f               Remove protected files without prompting.
  1604.         i               Remove files interactively.
  1605.         r               Recursively remove subdirectories.
  1606.         s               Remove files without echoing to screen.
  1607.  
  1608.  
  1609.  
  1610.  
  1611.     DESCRIPTION:
  1612.  
  1613.       RM is the UNIX equivalent of the MSDOS DEL command.  If a protected 
  1614.     file is specified, RM will prompt you before removing it unless the
  1615.     -f option is used.  This version of RM will display each filename as
  1616.     it is removed.  You can use the  -s option to override this feature.
  1617.  
  1618.       The -i option can be used with wildcards to allow you to pick 
  1619.     and choose which files will be removed. For example:
  1620.  
  1621.                         rm -i *.*
  1622.  
  1623.     will display each filename in the current directory and prompt you
  1624.     for a yes or no answer before deleting.
  1625.  
  1626.       The -r option is used to remove directories.  A directory cannot 
  1627.     be removed unless this option is used.  The directory along with all 
  1628.     files and subdirectories will be completely removed.  If you are using 
  1629.     RM to remove a directory on another drive, make sure that the drive is
  1630.     not logged in to the directory you are removing.  RM cannot remove the
  1631.         current directory of any drive.  
  1632.  
  1633.       If the root directory of any drive is specified, all files and
  1634.     directories on the drive will be removed.  The root directory itself 
  1635.     can not be removed.  For example:
  1636.  
  1637.             rm -r a:\
  1638.  
  1639.     will remove everything on drive A.  RM is a great tool for erasing
  1640.     floppy disks but it is also capable of wiping out your hard disk.
  1641.     Use it with care.
  1642.  
  1643.       RM will now accept multiple arguments, making it easier to clean
  1644.     up directories.  It is okay to mix file    names and directory names as 
  1645.     long as the -r option is used.
  1646.  
  1647.  
  1648.  
  1649. ~rn
  1650.  
  1651.  
  1652.     NAME:
  1653.  
  1654.     RN      Rename file or directory.
  1655.  
  1656.  
  1657.     SYNTAX:
  1658.  
  1659.  
  1660.     rn oldfile newfile              Renames oldfile to newfile.
  1661.     rn oldfile dir                  Relocates oldfile to dir.
  1662.         rn olddir  newdir               Renames olddir to newdir.
  1663.  
  1664.  
  1665.  
  1666.     OPTIONS: none
  1667.  
  1668.  
  1669.  
  1670.  
  1671.     DESCRIPTION:
  1672.  
  1673.       RN is similar to the MV command but is much more limited in scope.  
  1674.     Only one file or directory can be renamed at a time and wild cards 
  1675.     are not permitted.  Files can not be  relocated to another drive and 
  1676.     directories can only be renamed within the parent directory.  Because 
  1677.     of its small size, RN is very useful for floppy drive systems where
  1678.     space is limited.
  1679.  
  1680.  
  1681.  
  1682. ~sgrep
  1683.  
  1684.  
  1685.     NAME:
  1686.  
  1687.     SGREP    Search text file(s) for specified string. *
  1688.  
  1689.  
  1690.     SYNTAX:
  1691.  
  1692.  
  1693.     sgrep [-chilnv] string file1...filen
  1694.  
  1695.                     Searches file1..filen for string.       
  1696.  
  1697.         sgrep [-cinv] string        Searches STDIN for string.    
  1698.  
  1699.  
  1700.  
  1701.  
  1702.     OPTIONS:
  1703.  
  1704.     -c          Print only a count of matching lines.
  1705.     -h          Do not print file names.
  1706.     -i          Ignore differences between upper and lower case.
  1707.         -l          Print only the names of files with matching lines.
  1708.         -n          Print line numbers of matching lines.
  1709.         -v          Print only lines that don't match.
  1710.  
  1711.  
  1712.     DESCRIPTION:
  1713.  
  1714.       SGREP is a simplified version of the UNIX FGREP command and
  1715.     is similar to the MSDOS FIND command.  SGREP will search one
  1716.     or more files for a specified text string and display each
  1717.     line in which the string is found. Unlike FIND, SGREP will
  1718.     accept wild cards and multiple arguments as filenames.  It
  1719.     is not necessary to enclose the search string in quotes unless
  1720.     it contains a space.  For example:
  1721.  
  1722.         sgrep Zmodem rta.log
  1723.  
  1724.     will find all references to Zmodem in RTA.LOG and
  1725.  
  1726.         sgrep "File Express" rta.log
  1727.  
  1728.     will find all references to File Express.
  1729.  
  1730.       A -i option has been provided to ignore case differences
  1731.     when searching.  For example:
  1732.  
  1733.         sgrep -i zmodem rta.log
  1734.  
  1735.     will locate all references to ZMODEM, zmodem or Zmodem.
  1736.  
  1737.  
  1738.  
  1739.         
  1740.       If more than one file is being searched, SGREP will precede
  1741.     each line displayed with the name of the file in which it is
  1742.     found.  The -h option will suppress this feature.  The -n option
  1743.     will display the number of each line.  For example:
  1744.  
  1745.         sgrep -n Zmodem *.log
  1746.  
  1747.     will display each line containing "Zmodem" preceded by the name
  1748.     of the file and the number of the line, while
  1749.  
  1750.         sgrep -h Zmodem *.log
  1751.  
  1752.     will display only lines containing "Zmodem" with no file name or
  1753.     line number.
  1754.         
  1755.         If the -n option is used SGREP will display only the names of
  1756.     files containing matching lines.  The -c option is similar but
  1757.     will also give a count of matching lines.  The -v option displays
  1758.     lines that do NOT match the search string.
  1759.  
  1760.  
  1761.         * DOSNIX ver. 1.2k
  1762.  
  1763.  
  1764.  
  1765. ~split
  1766.  
  1767.  
  1768.     NAME:
  1769.  
  1770.     SPLIT    Split a text file into several smaller files. *
  1771.  
  1772.  
  1773.     SYNTAX:
  1774.  
  1775.  
  1776.     split [-###]            Splits standard input into
  1777.                     several small files.
  1778.  
  1779.     split [-###] file        Splits file into smaller files.
  1780.  
  1781.  
  1782.  
  1783.     OPTIONS:
  1784.  
  1785.     -###        Set output file size to ### lines.
  1786.  
  1787.  
  1788.  
  1789.  
  1790.     DESCRIPTION:
  1791.  
  1792.       SPLIT will divide a text file into smaller files of 1000 lines each.  
  1793.     If a smaller or larger output file size is desired, the number of 
  1794.     lines can be specified as an option.  Output files are named by adding
  1795.     extensions of .XAA, .XAB, etc. to the source file name.  When reading 
  1796.     from standard input output files are named XAA, XAB, etc.  For example:
  1797.  
  1798.             split -500  dosnix.doc
  1799.  
  1800.     will divide DOSNIX.DOC into files of 500 lines each named DOSNIX.XAA, 
  1801.     DOSNIX.XAB, DOSNIX.XAC .... , while
  1802.  
  1803.             cat dosnix.doc | split -250
  1804.  
  1805.     will divide DOSNIX.DOC into files of 250 lines each named XAA, XAB, 
  1806.     XAC ....  This allows for up to 676 output files although it is not 
  1807.     wise to split up a file into that many pieces.  Files can be re-
  1808.     assembled after editing, or other modifications, by using CAT.
  1809.  
  1810.  
  1811.         * DOSNIX ver. 1.2k
  1812.  
  1813.  
  1814.  
  1815. ~tee
  1816.  
  1817.  
  1818.     NAME:
  1819.  
  1820.     TEE     Copy standard input to standard output and file(s).
  1821.  
  1822.  
  1823.     SYNTAX:
  1824.  
  1825.     tee [-a] file1 [file2]..[file5]         Copies STDIN to STDOUT and 
  1826.                         file1..file5.
  1827.  
  1828.  
  1829.     OPTIONS:
  1830.  
  1831.     a                       Append output to specified file[s]
  1832.         s                       Suppress standard output.
  1833.  
  1834.  
  1835.     DESCRIPTION:
  1836.  
  1837.       TEE can be used with the DOS "|" operator and any command which 
  1838.     writes to standard output.  For example:
  1839.  
  1840.         cat file1 file2 | tee file3
  1841.  
  1842.     concatenates file1 and file2 while displaying them on the screen and 
  1843.     stores them in file3.
  1844.  
  1845.                  ls -lb dir1 | tee file1
  1846.  
  1847.         displays dir1 in long format and stores the output in file1.
  1848.  
  1849.           The -a option can be used to append the output to existing files.  
  1850.     If the -a option is not used, existing files will be overwritten.  
  1851.     For example:
  1852.  
  1853.                         tee -a file2 <file1
  1854.  
  1855.         displays file1 and appends it to the end of file2
  1856.  
  1857.                         tee file2 <file1
  1858.  
  1859.         displays file1 and overwrites file2.
  1860.  
  1861.           The -s option can be used to suppress standard output and write to 
  1862.     specified files only.  For example:
  1863.  
  1864.         cat source1 | tee -s file1 file2 file3
  1865.  
  1866.         will make multiple copies of source1 without displaying it on the 
  1867.     screen.
  1868.  
  1869.           TEE is meant for use with text files only and use with binary files 
  1870.     is not recommended.
  1871.  
  1872.  
  1873.  
  1874. ~tolower
  1875.  
  1876.  
  1877.     NAME:
  1878.  
  1879.     TOLOWER         Convert to lower case.
  1880.  
  1881.  
  1882.  
  1883.     SYNTAX:
  1884.  
  1885.     tolower                         Converts STDIN to lower case and 
  1886.                     writes to STDOUT.
  1887.  
  1888.  
  1889.  
  1890.     DESCRIPTION:
  1891.  
  1892.       TOLOWER is a filter which will convert all upper case characters to 
  1893.     lower case.  All other characters are left unchanged.  For example:
  1894.  
  1895.                         tolower < file1 > file2
  1896.  
  1897.         converts file1 to lower case and stores the result in file2.
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903. ~touch
  1904.  
  1905.  
  1906.     NAME:
  1907.  
  1908.     TOUCH   Modify file date and time.
  1909.  
  1910.  
  1911.  
  1912.     SYNTAX:
  1913.  
  1914.     touch [-t] [mm/dd/yy;hh:mm:ss] file1
  1915.                                                 Changes date and time of file1
  1916.  
  1917.  
  1918.  
  1919.     OPTIONS:
  1920.  
  1921.     t                       User selected time and date.
  1922.  
  1923.  
  1924.  
  1925.     DESCRIPTION:
  1926.  
  1927.       TOUCH will change the date and time of the specified file to the 
  1928.     current DOS date and time.  If the -t option is used the user can 
  1929.     supply the date and time as the next argument in the format 
  1930.     mm/dd/yy;hh:mm:ss.  If the date and time argument is omitted the 
  1931.     user is prompted to enter the  date and time of his choice.  Wildcards 
  1932.     can be used in file names.
  1933.  
  1934.  
  1935.  
  1936.  
  1937. ~toupper
  1938.  
  1939.  
  1940.     NAME:
  1941.  
  1942.     TOUPPER         Convert to upper case.
  1943.  
  1944.  
  1945.  
  1946.     SYNTAX:
  1947.  
  1948.     toupper                         Converts STDIN to upper case and 
  1949.                     writes to STDOUT.
  1950.  
  1951.  
  1952.  
  1953.     DESCRIPTION:
  1954.  
  1955.       TOUPPER is a filter which will convert all lower case characters 
  1956.     to upper case.  All other characters are left unchanged.  For example:
  1957.  
  1958.                         toupper < file1 > file2
  1959.  
  1960.         converts file1 to upper case and stores the result in file2.
  1961.  
  1962.  
  1963. ~wc
  1964.  
  1965.  
  1966.     NAME:
  1967.  
  1968.     WC        Count lines, words and characters in a file. *
  1969.  
  1970.  
  1971.  
  1972.     SYNTAX:
  1973.  
  1974.  
  1975.     wc                    Counts lines, words and
  1976.                         characters in STDIN.
  1977.  
  1978.     wc [-clw] file1[..filen]        Counts lines words and
  1979.                         characters in file1..filen.
  1980.  
  1981.  
  1982.  
  1983.     OPTIONS:
  1984.  
  1985.     -c              Print character count only.
  1986.     -l              Print line count only.
  1987.     -w              Print word count only.
  1988.  
  1989.  
  1990.  
  1991.     DESCRIPTION:
  1992.  
  1993.       WC will count the number of lines, words and characters in one
  1994.     or more text files and display the totals on the screen.  Options are 
  1995.     provided to print a count of lines only, words only or characters
  1996.     only. If no options are used WC will display all three counts.
  1997.     For example:
  1998.  
  1999.             wc dosnix.doc
  2000.  
  2001.     will display the total number of lines, words and characters in
  2002.     DOSNIX.DOC, while
  2003.  
  2004.             wc -l dosnix.doc
  2005.  
  2006.     will display only the number of lines in DOSNIX.DOC, and
  2007.  
  2008.             wc -w *.doc
  2009.  
  2010.     will display the number of words in each file with an extension of
  2011.     .DOC.  A word is considered to be one or more characters delimited
  2012.     by a blank, tab or a newline.
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.       WC will also read from STDIN.  For example:
  2019.  
  2020.             cat *.c | wc 
  2021.  
  2022.     will give the total number of lines, words and characters in all
  2023.     .C files.  If WC is reading from a file, the name of each file
  2024.     will be printed after the count.  When reading from STDIN, no file
  2025.     name is printed.
  2026.  
  2027.  
  2028.         * DOSNIX ver. 1.2k
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.                       DISCLAIMER OF WARRANTY
  2035.  
  2036.     This software and manual are sold "as is" and without warranties as to
  2037.     performance of merchantability or any other warranties whether expressed
  2038.     or implied.  Because of the various hardware and software environments
  2039.     into which this program may be put, no warranty of fitness for a particular
  2040.     purpose is offered.
  2041.  
  2042.     Good data processing procedure dictates that any program be thoroughly
  2043.     tested with non-critical data before relying on it.  The user must assume
  2044.     the entire risk of using the program.  Any liability of the seller will be
  2045.     limited exclusively to product replacement or refund of purchase price.
  2046.  
  2047.  
  2048.  
  2049.  
  2050. ~registration
  2051.  
  2052.  
  2053.           DOSNIX ver. 0.94k is the product of many hours of design, testing
  2054.         and debugging.  If you use this utility package beyond a reasonable
  2055.         period of time for evaluation, you are required to register. When you 
  2056.     register you will be sent a copy of DOSNIX ver. 1.2k which contains 
  2057.     several utilities not found in this version, including CPDIR, GET, 
  2058.     SGREP, SPLIT and WC.  The fee for registration is $25.00.  Currently 
  2059.     registered users may upgrade at any time by sending $5.00 to cover 
  2060.     shipping and handling.
  2061.  
  2062.           Copies of DOSNIX ver. 0.94k can be made and distributed provided 
  2063.         that all utilities, documentation and licensing information are 
  2064.     included.  Even if you do not use this program you are encouraged 
  2065.     to share it with your friends and to upload it to bulletin boards. 
  2066.     Shareware dealers are free to distribute this program provided that 
  2067.     they comply with the guidelines given in VENDOR.DOC.
  2068.  
  2069.           Businesses are invited to use DOSNIX on a trial basis and then to
  2070.         apply for a site license.  Please write to me at the address below
  2071.         to register or to obtain information on site licenses.
  2072.  
  2073.  
  2074.                         Gerald M. Vrooman
  2075.                         RD 1 Box 56
  2076.                         Chenango Forks, NY
  2077.                         13746
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084. -------------------------------------------------------------------------------
  2085.  
  2086.  
  2087.                   DOSNIX  REGISTRATION
  2088.  
  2089.  
  2090.  
  2091.         NAME:     ____________________________________________________________
  2092.  
  2093.         ADDRESS:  ____________________________________________________________
  2094.  
  2095.                   ____________________________________________________________
  2096.  
  2097.                   ____________________________________________________________
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.     ____ DOSNIX ver. 1.2k @ $5.00                  ____________
  2105.  
  2106.  
  2107.     ____ Single user registration @ $25.00                ____________
  2108.          (Includes DOSNIX ver. 1.2k)
  2109.  
  2110.  
  2111.     ____ Basic Site License @ $65.00                      ____________
  2112.          (Up to three computers)
  2113.  
  2114.  
  2115.     ____ Additional computers @ $20.00                    ____________
  2116.  
  2117.  
  2118.  
  2119.     Total amount enclosed                                 ____________
  2120.     
  2121.  
  2122.  
  2123.  
  2124.         Please circle one:      5.25" disk      3.5" disk
  2125.  
  2126.  
  2127.  
  2128.