home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 March / Chip_1999-03_cd.bin / sharewar / WinXs / winxs32.EXE / MAN.TBS < prev    next >
Encoding:
Text File  |  1998-09-15  |  60.8 KB  |  1,807 lines

  1. #name overview
  2. #whatis overview - DOS command line processing
  3.  
  4. On DOS systems, command line processing is normally provided
  5. by  command.com (or cmd.exe on NT systems).  This is broadly
  6. equivalent to a Shell command interpreter  on  UNIX  systems
  7. (e.g.,  /bin/sh),  though  it is much more limited in almost
  8. every way.  The following list provides  a  summary  of  the
  9. main features of DOS command processing:
  10.  
  11. Parameter Substitution
  12.       Parameter  substitution   is   delimited   by  percent
  13.       characters  (i.e.  %var%).   These substitutions occur
  14.       anywhere on the command line, including within  quoted
  15.       strings.  For example:
  16.  
  17.            set x=/usr/bin
  18.            echo %x%
  19.  
  20.       is equivalent to:
  21.  
  22.            x=/usr/bin
  23.            echo $x
  24.  
  25.       on a UNIX system.   Within  a  quoted  string,  the  %
  26.       character can be escaped by typing %%.
  27.  
  28. Command Substitution
  29.       None provided (aka $(command)  or  `command`  on  UNIX
  30.       systems).
  31.  
  32. Arithmetic Substitution
  33.       None provided (aka $((expression)) on UNIX systems).
  34.  
  35. Quoting
  36.       Command arguments are quoted on DOS using double-quote
  37.       characters;  single-quotes are not recognized.  Within
  38.       quoted strings, parameter  substitutions  still  occur
  39.       unless  escaped.  Double-quotes appearing literally in
  40.       a quoted string can be escaped by preceding them  with
  41.       a backslash character.  For example:
  42.  
  43.            grep "#include \"head.h\"" *.c
  44.  
  45.       will display lines from all  C  source  files  in  the
  46.       current directory containing the character sequence:
  47.  
  48.            #include "head.h"
  49.  
  50. History Substitutions
  51.       A  command  history  mechanism  is  provided  by   the
  52.       "doskey"  program.   This  can be started from a batch
  53.       file (e.g., autoexec.bat) or directly from the command
  54.       line.   Doskey  provides a command macro capability, a
  55.       command history mechanism, and command  line  editing.
  56.       Type "doskey /?" for details.
  57.  
  58. Line Continuation
  59.       None.   The  DOS  command  interpreter  executes   the
  60.       command line as soon as you hit Enter, irrespective of
  61.       whether or not the input line is  complete;  that  is,
  62.       there  is  no  equivalent of the PS2 line continuation
  63.       prompt on UNIX.
  64.  
  65. Input/Output Redirection
  66.       DOS  supports  input  redirection  using  the  "<file"
  67.       syntax,  and  output  redirections  using  ">file"  or
  68.       ">>file".  It does not support here-is files  ("<<eof"
  69.       on  UNIX)  or redirection of specific file descriptors
  70.       (e.g.,  "2>&1"  on  UNIX),   so   stderr   cannot   be
  71.       redirected.
  72.  
  73. File Name Expansion
  74.       On UNIX systems, file name expansion is  performed  by
  75.       the  Shell;  on  DOS  systems,  it is performed by the
  76.       called program itself.   The  WinXs  commands  perform
  77.       wild-card  expansions  on  tokens  appearing  as  file
  78.       names, but not on those appearing as option  arguments
  79.       (see  "man  syntax"  and "man filenames" for details).
  80.       Other commands may expand file names differently.
  81.  
  82. #name config
  83. #whatis config - configuring the command line tools
  84.  
  85. The WinXs command line tools are made  available  by  adding
  86. the  appropriate  WinXs directory to your environment search
  87. path.  This is done by adding or modifing a call to the PATH
  88. command in the autoexec.bat file. For example,
  89.  
  90.      PATH c:\winxs\bin;c:\windows;c:\dos
  91.  
  92. This identifies three  directories  that  will  be  searched
  93. automatically when entering a command at the command prompt;
  94. namely,  "c:\winxs\bin",  "c:\windows",  and  "c:\dos".  The
  95. exact  nature  of  this  command  will  vary  from system to
  96. system, so you should  check  your  current  setting  before
  97. making any changes.
  98.  
  99. Note that "winxs" in the above example is the  name  of  the
  100. directory where you installed WinXs.  The command line tools
  101. are located in the "bin" subdirectory below this directory.
  102.  
  103. #name syntax
  104. #whatis syntax - command line syntax
  105.  
  106. All WinXs command line tools follow the same general syntax,
  107. i.e.,
  108.  
  109.      name [options] [files]
  110.  
  111. where name is the command  name,  options  is  one  or  more
  112. keyword  options introduced by a hyphen, and files names one
  113. or more input files.  Not all commands support both  options
  114. and  files,  but  where  they are supported, the syntax that
  115. applies to them is always the same.
  116.  
  117. Note that square brackets in a  command  line  specification
  118. indicate  an  optional element; ellipsis (...) indicate that
  119. the previous command line element can be repeated any number
  120. of times.  For example:
  121.  
  122.      foo [-abc] [-o file] [file ...]
  123.  
  124. Identifies a mythical command named "foo", which will accept
  125. three  single key options (-a, -b and -c), an option -o that
  126. is followed by a file name, and the names of  zero,  one  or
  127. more  input  files.   Generally,  if no files are specified,
  128. input is taken from the standard input  stream.   Output  is
  129. almost  always  written to the standard output stream unless
  130. redirected.
  131.  
  132. Because of this use of standard input and  standard  output,
  133. the  WinXs commands can be used freely in command pipelines.
  134. For example,
  135.  
  136.      nl -ba -nrz -s# file1 | sort -rn | sed "s/^[0-9]*#//"
  137.  
  138. will reverse the lines in a text file (file1) and write  the
  139. results to standard output (normally the console).
  140.  
  141. #name options
  142. #whatis options - specifying command options
  143.  
  144. Command options are introduced by a hyphen (-), which may be
  145. followed  by  one  or  more  keys.   Keys  can  be specified
  146. collectively after a single hyphen, or they can be specified
  147. individually.  For example, the following invocations of the
  148. foo command are considered equivalent:
  149.  
  150.      foo -abc
  151.      foo -ab -c
  152.      foo -a -bc
  153.      foo -a -b -c
  154.  
  155. The  order  in  which  option  keys  are  specified  is  not
  156. generally  significant,  unless  the  key  is  defined to be
  157. followed by a value (e.g., [-o file]).  In  this  case,  the
  158. value  must immediately follow the key, which may or may not
  159. be separated by one or more blanks (space or tab).  So,  for
  160. example,
  161.  
  162.      foo -o outfile
  163.      foo -ooutfile
  164.  
  165. are again treated as equivalent.  Note,  however,  that  any
  166. other option following a value must be introduced by another
  167. hyphen, as in:
  168.  
  169.      foo -o outfile -a
  170.  
  171. Note also that file name expansion (see the next section) is
  172. not  performed  on option values, so file names appearing as
  173. option values cannot contain wild-card characters.
  174.  
  175. #name filenames
  176. #whatis filenames - file name expansion
  177.  
  178. The WinXs command line tools  provide  automatic  file  name
  179. expansion  for  names  appearing  in the [file] element of a
  180. command  line.   The  following  wild-card  characters   are
  181. recognised:
  182.  
  183. *     Any character or group of characters.
  184.  
  185. ?     Any single character.
  186.  
  187. So, for example:
  188.  
  189.      foo -a *.txt
  190.  
  191. will expand to all file names in the current directory  with
  192. a .txt extension.
  193.  
  194.      foo -a ../*.txt
  195.  
  196. will expand to all file names in the parent directory with a
  197. .txt extension
  198.  
  199. Note that the WinXs tools accept either  the  DOS  separator
  200. character (\) in file names, or the UNIX separator character
  201. (/).  Path names appearing in command lines may be  relative
  202. (e.g., ../../foobar) or absolute (e.g., c:\winxs\*.txt), but
  203. only file name elements may contain wild-card characters.
  204.  
  205. (Note.  On Windows 95, specifying "*" on its own will expand
  206. to  a  list  of  all  files  in  the selected directory.  On
  207. Windows 3.x, this will expand to a list  of  files  with  no
  208. extensions.  Use "*.*" on Windows 3.x to select all files.)
  209.  
  210. #name cat
  211. #whatis cat - concatenate files
  212.  
  213. cat [-su] [-v[te]] [file ...]
  214.  
  215. cat accepts the following options:
  216.  
  217. -s    Does not produce an error message on failure
  218.  
  219. -u    Does not buffer output
  220.  
  221. -v    Displays all  characters,  including  those  that  are
  222.       unprintable.   When displaying unprintable characters,
  223.       ^c is used for the control characters,  and  \xxx  for
  224.       8-bit characters (where xxx represents the octal value
  225.       of the character).
  226.  
  227. -t    Displays tabs as ^I.
  228.  
  229. -e    Displays a $ character at the end of each line.
  230.  
  231. cat writes its output to  standard  output,  and  reads  its
  232. input from standard input if no file is specified.
  233.  
  234. #name cksum
  235. #whatis cksum - write file checksums and sizes
  236.  
  237. cksum [file ...]
  238.  
  239. cksum calculates a cyclic redundacy  check  (CRC)  for  each
  240. input  file, which it writes along with the size of the file
  241. (in bytes) to standard output.  Standard input is used if no
  242. file operands are specified on the command line.
  243.  
  244. Typically, this utility is used to check  the  integrity  of
  245. files  received  from  other  systems; that is, the CRC of a
  246. file should be the same on both systems.
  247.  
  248. #name cmp
  249. #whatis cmp - compare binary files
  250.  
  251. cmp [-s] file1 file2
  252.  
  253. cmp accepts the following options:
  254.  
  255. -s    Does not produce an error  message  on  failure.   The
  256.       exist  status  can be used to determine the success or
  257.       otherwise  of  the  command  (i.e.,  0  =  files   are
  258.       identical, 1 = files are different, 2 = failure).
  259.  
  260. #name col
  261. #whatis col - filter reverse line feeds
  262.  
  263. col [-bfpx] [-t tabstop] [file ...]
  264.  
  265. col accepts the following options:
  266.  
  267. -b    Filter backspaces.
  268.  
  269. -f    Allow forward half-line feeds.
  270.  
  271. -p    Ignore unknown escapes.
  272.  
  273. -t tabstop
  274.       Sets the number of column positions for tab conversion
  275.       (default 8).
  276.  
  277. -x    No space to tab conversion.
  278.  
  279. col writes its output to  standard  output,  and  reads  its
  280. input from standard input if no file is specified.
  281.  
  282. #name comm
  283. #whatis comm - select or reject lines common to two files
  284.  
  285. comm [-123] file1 file2
  286.  
  287. comm accepts the following options:
  288.  
  289. -1    Suppress the output of lines unique to file1.
  290.  
  291. -2    Suppress the output of lines unique to file2.
  292.  
  293. -3    Suppress the output of lines common to both files.
  294.  
  295. comm  reads  file1  and  file2,  which  should   be   sorted
  296. alphabetically,  and produces three columns of output; lines
  297. only in file1, lines only in file2, and lines common to both
  298. files.  Any or all of these columns can be suppressed.
  299.  
  300. #name compress
  301. #whatis compress - compress data in a file or files
  302.  
  303. compress [-cd] [file ...]
  304.  
  305. compress accepts the following options:
  306.  
  307. -c    cat output.  Normally compress will compress the named
  308.       files  in  place.   If  this  option is specified, the
  309.       output is written to standard output instead.
  310.  
  311. -d    Decompress.  The input files are  uncompressed  rather
  312.       than compressed.
  313.  
  314. If file is not specified, the input is  read  from  standard
  315. input and the output is written to standard output.
  316.  
  317. #name cp
  318. #whatis cp - copy files
  319.  
  320. cp [-fip] source_file target_file
  321. cp [-fip] source_file ... directory
  322. cp -R [-fip] source_file ... directory
  323. cp -r [-fip] source_file ... directory
  324.  
  325. cp accepts the following options:
  326.  
  327. -f    If a target_file exists, remove it  before  attempting
  328.       to  copy  the  source_file.   This  includes  removing
  329.       Read-only files.
  330.  
  331. -i    If  a  target_file  exists,  prompt   the   user   for
  332.       confirmation  before  attempting  the  copy operation.
  333.       Whether or not this option is  specified,  source_file
  334.       will  not  be  copied if the target_file is Read-only.
  335.       Use the -f option to force a copy in this case.
  336.  
  337. -p    In addition to copying the data of  source_file,  also
  338.       copy the file mode, access time and modification time.
  339.       If this option is  not  specified,  the  mode  of  the
  340.       target  file  will  be  set to read and write, and the
  341.       file access times will be set to the time at which the
  342.       copy took place.
  343.  
  344. -R    Copy file hierarchies.  When this option is  set,  and
  345.       if  source_file  identifies  a  directory,  the entire
  346.       directory structure  rooted  at  source_file  will  be
  347.       copied to the target directory.
  348.  
  349. -r    Same as -R.
  350.  
  351. In  the  first  form,  source_file  is  simply   copied   to
  352. target_file, neither of which can identify a directory.  The
  353. target file will be created if it does not already exist.
  354.  
  355. In the second form, where neither -R  or  -r  is  specified,
  356. each  of the source_files is copied to the target directory.
  357. It is an error if any source_file is  a  directory,  if  the
  358. target  directory  does not exist, or if the target is not a
  359. directory.
  360.  
  361. In the third and fourth forms, where -R or -r is  specified,
  362. the  cp  utility  will  copy  each source_file to the target
  363. directory, creating the target  directory  if  it  does  not
  364. already  exist.  When -R or -r is specified, source_file can
  365. identify either a file or a directory.
  366.  
  367. #name csplit
  368. #whatis csplit - split files based on context
  369.  
  370. csplit [-s] [-f prefix] [-n number] file arg1 ... argn
  371.  
  372. csplit accepts the following options:
  373.  
  374. -s    Suppress the output of file size messages
  375.  
  376. -f    Prefix.
  377.  
  378. -n    Number of digits in generated file names.
  379.  
  380. #name cut
  381. #whatis cut - cut out selected fields from each line of a file
  382.  
  383. cut -b list [-n] [file ...]
  384. cut -c list [file ...]
  385. cut -f list [-d delim] [-s] [file ...]
  386.  
  387. cut accepts the following options:
  388.  
  389. -b list
  390.       Cut based on a list of bytes.  List  contains  one  or
  391.       more  comma or blank separated elements.  Each element
  392.       of the list has the form:  low-high  (cut  from  "low"
  393.       byte to "high" byte), -high (cut from byte 1 to "high"
  394.       byte), or low- (but from "low" byte to the  last  byte
  395.       in each line).
  396.  
  397. -c list
  398.       Same as "-b list".
  399.  
  400. -f list
  401.       Cut based on a list of fields, where each input  field
  402.       is  separated by the delim character (see "-d" below).
  403.       Output fields will be separated by a  single  instance
  404.       of  delim.   Lines  with  no  field delimiters will be
  405.       passed  through  intact,  unless  "-s"  is  specified.
  406.       "list" has the same meaning as described above, except
  407.       that "low" and "high" refer to field numbers (starting
  408.       at 1) rather than bytes.
  409.  
  410. -d delim
  411.       Set the field delimiter to the character "delim"  (tab
  412.       by default).
  413.  
  414. -n    Ignored (reserved for future use).
  415.  
  416. -s    Suppress  the  output  of  lines  with  no   delimiter
  417.       characters.
  418.  
  419. The cut  utility  will  cut  bytes  (-b  or  -c  option)  or
  420. character delimited fields (-f option) from each line of one
  421. or more input files, concatenate them and write the  results
  422. to  standard  output. Standard input is used if no files are
  423. specified on the command line.
  424.  
  425. #name dd
  426. #whatis dd - convert and copy a file
  427.  
  428. dd [bs=expr] [cbs=expr] [conv=value[,value...]] [count=n]
  429.    [ibs=expr] [if=file] [obs=expr] [of=file] [seek=n] [skip=n]
  430.  
  431. dd accepts the following operands:
  432.  
  433. if=file     Specifies the input file name (standard input by
  434.             default).
  435.  
  436. of=file     Specifies the output file name (standard  output
  437.             by default).
  438.  
  439. bs=expr     Set  input  and   output   block   size,   which
  440.             supersedes any settings of ibs= or obs=.  "expr"
  441.             can be: a decimal number,  indicating  bytes;  a
  442.             decimal   number   followed   by  k,  indicating
  443.             kilobytes;  a  decimal  number  followed  by  b,
  444.             indicating  512-byte blocks; two or more decimal
  445.             numbers separated by x, indicating  the  product
  446.             of the specified values.
  447.  
  448. ibs=expr    Specify  the  input  block  size  (default   512
  449.             bytes).
  450.  
  451. obs=expr    Specify  the  output  block  size  (default  512
  452.             bytes).
  453.  
  454. cbs=expr    Specify   the   conversion   block   size    for
  455.             block/unblock conversions.
  456.  
  457. skip=n      Skip "n" input blocks before starting the copy.
  458.  
  459. seek=n      Skip "n" output blocks from the beginning of the
  460.             output file before copying.
  461.  
  462. count=n     Copy only n input blocks"
  463.  
  464. conv=value  Where "value"s are comma-separated symbols  from
  465.             the following list:
  466.  
  467.             ascii   convert input characters from EBCDIC  to
  468.                     ASCII.
  469.  
  470.             ebcdic  convert input characters from  ASCII  to
  471.                     EBCDIC.
  472.  
  473.             ibm     convert input characters from ASCII to a
  474.                     different EBCDIC set.
  475.  
  476.             block   treat  the  input  as  variable   length
  477.                     records separated by newline characters,
  478.                     and convert each input record to a fixed
  479.                     length   output   record  equal  to  the
  480.                     conversion  block  size,  padding   with
  481.                     space characters if necessary.
  482.  
  483.             unblock treat the input as fixed length  records
  484.                     of  conversion  block  size, and convert
  485.                     each input record to a  variable  length
  486.                     output  record, removing spaces from the
  487.                     end of each input line as necessary.
  488.  
  489.             lcase   map upper-case characters in  the  input
  490.                     to    their   corresponding   lower-case
  491.                     character.
  492.  
  493.             ucase   map lower-case characters in  the  input
  494.                     to    their   corresponding   upper-case
  495.                     character.
  496.  
  497.             swab    swap every pair of input bytes.
  498.  
  499.             noerror do not stop processing on input error.
  500.  
  501.             notrunc do not truncate the output  file  if  it
  502.                     already exists.
  503.  
  504.             sync    pad every input block to the size of the
  505.                     input  block  size, appending null bytes
  506.                     as necessary  (or  space  characters  if
  507.                     either block or unblock is specified).
  508.  
  509. The dd utility  copies  the  specified  input  file  to  the
  510. specified  output  file  with  possible  conversions,  using
  511. specific input and output block sizes.  One input  block  is
  512. read  at  a  time, conversions are applied (if any), and the
  513. block is written to the output in the specified block size.
  514.  
  515. #name df
  516. #whatis df - report free disk space
  517.  
  518. df [-kPt] [file ...]
  519.  
  520. df accepts the following options:
  521.  
  522. -k    Use 1024-byte units, instead of the  default  512-byte
  523.       units, when writing space figures.
  524.  
  525. -P    Produce output in the portable format defined by POSIX
  526.       (default).
  527.  
  528. -t    Include total allocated space figures  in  the  output
  529.       (default).
  530.  
  531. The df utility writes  out  various  information  about  the
  532. drives containing the indicated files, including:
  533.  
  534.    + Drive number (Filesystem).
  535.  
  536.    + Total disk space in  512-byte  (default)  or  1024-byte
  537.      units.
  538.  
  539.    + Used disk space  in  512-byte  (default)  or  1024-byte
  540.      units.
  541.  
  542.    + Available disk space in 512-byte (default) or 1024-byte
  543.      units.
  544.  
  545.    + Capacity in terms of the percentage of space used.
  546.  
  547.    + Mount point of the file-system.
  548.  
  549. If no file operand is specified, statistics are produced for
  550. the  current drive (This is different to the UNIX version of
  551. df, which produces statistics for  all  mounted  drives.   A
  552. similar  effect  is difficult to achieve on a DOS system, as
  553. DOS contains nothing equivalent to the UNIX mount table.)
  554.  
  555. #name diff
  556. #whatis diff - compare files
  557.  
  558. diff [-abei] [-CN] file1 file2
  559.  
  560. diff accepts the following options:
  561.  
  562. -a    Text file.  Diff first attempts to  determine  if  the
  563.       files  being  compared are text files or binary files.
  564.       If the latter,  they  are  compared  using  the  "cmp"
  565.       utility.   Setting  this  option  forces  a  text file
  566.       comparison.
  567.  
  568. -b    Ignore white-space in text file comparisons.
  569.  
  570. -e    Output differences in a form that is suitable as input
  571.       to the "sed" utility.
  572.  
  573. -i    Ignore case in text file comparisons.
  574.  
  575. -C    Indicates the number of  text  lines  that  should  be
  576.       matched  to  re-synchronize  file1  and  file2 after a
  577.       difference has been detected (default 3).  This  value
  578.       can  also  be  set  via the DIFFC environment variable
  579.       (e.g. "set DIFFC=3").
  580.  
  581. #name dos2unix
  582. #whatis dos2unix - convert text file from DOS to UNIX format
  583.  
  584. dos2unix [-o output] file ...
  585.  
  586. dos2unix accepts the following options:
  587.  
  588. -o    Normally dos2unix converts files in  place.   If  this
  589.       option  is specified, and output names a file, all the
  590.       input is converted and appended to the named file;  if
  591.       it  names  a  directory, the input files are copied to
  592.       the named directory and then converted.  If file names
  593.       a  directory, this option must be specified and output
  594.       must also identify a directory.
  595.  
  596. #name dircmp
  597. #whatis dircmp - compare the contents of two directories
  598.  
  599. dircmp [-rd] dir1 dir2
  600.  
  601. dircmp accepts the following options:
  602.  
  603. -d    Compare the contents of files with the same name using
  604.       diff,  and  output  a  list  indicating  what  must be
  605.       changed in the two files to make them  the  same  (see
  606.       diff  for  more  details).   If  this  option  is  not
  607.       specified, files with the same name are compared using
  608.       cmp.
  609.  
  610. -r    Recursive.  When  this  option  is  specified,  dircmp
  611.       compares  the directory hierarchies rooted at dir1 and
  612.       dir2, including all subdirectories and subfiles.
  613.  
  614. The dircmp command line  utility  examines  the  directories
  615. specified  by  dir1 and dir2 and generates various tabulated
  616. information about their contents. Where the same file exists
  617. in  both  directories, or subdirectories if -r is specified,
  618. either a binary comparison will be performed, or  diff  will
  619. be  invoked  to  perform  the comparison if the -d option is
  620. specified.  Where a file only exists  in  one  directory  or
  621. another,  a line will be output giving the name of that file
  622. and the name of the directory in which it exists.
  623.  
  624. dircmp uses the PATH environment variable to locate cmp  and
  625. diff.   If  the  WinXs "bin" directory has not been added to
  626. PATH, dircmp will not work correctly.
  627.  
  628.  
  629. #name du
  630. #whatis du - estimate file space usage
  631.  
  632. du [-a | -s] [-ku] [file ...]
  633.  
  634. du accepts the following options:
  635.  
  636. -a    List all files.
  637.  
  638. -s    Exclude sub-directories.
  639.  
  640. -k    Display file sizes in 1024 byte units, rather than the
  641.       default 512 byte units
  642.  
  643. -u    Attempt  to determine the size of file-system clusters
  644.       and display file sizes in these  units.   This  option
  645.       also causes a space utilization figure to be displayed
  646.       as a percentage of used space vs allocated space.
  647.  
  648. By default, du displays the amount of file  space  allocated
  649. to  each  identified  file  or directory.  If a directory is
  650. specified, du displays the amount of space allocated to  the
  651. file hierarchy rooted at the specified directory and each of
  652. its subdirectories (unless -s is also specified); specifying
  653. -a  causes the space allocated to all files in the directory
  654. hierarchy to be displayed.  If the file argument is omitted,
  655. the  current  directory  is  used as the default.  Output is
  656. always written to standard output.
  657.  
  658. #name expand
  659. #whatis expand - convert tabs to spaces
  660.  
  661. expand [-t tabstop] [file ...]
  662.  
  663. expand accepts the following options:
  664.  
  665. -t    Tab length.
  666.  
  667. expand writes its output to standard output, and  reads  its
  668. input from standard input if no file is specified.
  669.  
  670. #name file
  671. #whatis file - determine file type
  672.  
  673. file file ...
  674.  
  675. The command line version of file attempts to determine  file
  676. types using magic numbers only.
  677.  
  678. #name find
  679. #whatis find - find files
  680.  
  681. find path ... [expression]
  682.  
  683. find accepts the following options:
  684.  
  685. path        Names one or  more  directories  from  which  to
  686.             begin searching for files that match expression.
  687.  
  688. Expression  An  expression  is  made  up  of  primaries  and
  689.             operators that are matched against all files and
  690.             directories in the directory hierarchy named  by
  691.             path (see below for details).
  692.  
  693. The find command line utility will recursively  descend  the
  694. directory  hierarchy  starting at the directory specified by
  695. path, and find files that match the  criteria  specified  by
  696. expression.
  697.  
  698. find  builds  expression  from  a  set  of   primaries   and
  699. operators.  The first argument that begins with a '-' (minus
  700. sign), '!' (the NOT operator), or '(' (left parenthesis) is
  701. interpreted as the start of expression.
  702.  
  703. Operators
  704.  
  705. Primaries can be  combined  with  the  following  operators,
  706. presented in order of decreasing precedence:
  707.  
  708. ( expression )
  709.       True if expression is true.  Parenthesis are used  for
  710.       grouping primaries, for example:
  711.  
  712.            find . ( ( -name tmp -o -name temp ) -prune ) -o -print
  713.  
  714.       will print the names of all  files  in  the  directory
  715.       hierarchy  starting from the current directory, except
  716.       for  files  in  directories  named  "tmp"  or  "temp".
  717.       Without the parenthesis, nothing would be printed.
  718.  
  719. ! expression
  720.       The unary NOT operator, which  negates  the  following
  721.       primary.
  722.  
  723. expression [-a] expression
  724.       Conjunction of primaries.  The AND operator is implied
  725.       by the juxtaposition of two primaries or made explicit
  726.       by the -a operator.  The second expression will not be
  727.       evaluated if the first expression is false.
  728.  
  729. expression -o expression
  730.       Alternative primaries.   With  the  OR  operator,  the
  731.       second  expression  will not be evaluated if the first
  732.       expression is true.
  733.  
  734. Note that the AND and OR operators are  considered  to  have
  735. equal precedence and group from left to right.
  736.  
  737. Primaries
  738.  
  739. The following primaries are supported:
  740.  
  741. -name pattern
  742.       This primary will evaluate as true if the last element
  743.       of the file name being examined matches pattern, which
  744.       is a file name pattern possibly containing  DOS  wild-
  745.       card characters.  For example:
  746.  
  747.            find . -name *.c -o -name *.h
  748.  
  749.       will  match  (and  print  the  names  of)  all   files
  750.       containing  the  extensions  ".c"  or ".h".  Note that
  751.       primaries and expressions  appearing  on  the  command
  752.       line  must  be  separated  by at least one white-space
  753.       character (space or tab).
  754.  
  755. -newer file
  756.       This primary will evaluate as true if the  file  being
  757.       examined  was  modified more recently than file.  file
  758.       is only evaluated once,  when  the  command  is  first
  759.       invoked.
  760.  
  761. -prune
  762.       This primary always evaluates as true.  Its effect  is
  763.       to  cause find not to descend the current path name if
  764.       it is a  directory.   If  -depth  is  also  specified,
  765.       -prune has no effect.
  766.  
  767. -perm mode
  768.       The mode argument is used to check for  specific  file
  769.       modes,  and  can be one of "r" (read-only file) or "w"
  770.       (read and write file).  Thus to check  for  all  read-
  771.       only files on the current drive, use:
  772.  
  773.            find / -perm r
  774.  
  775.       Note that path names can  be  specified  using  either
  776.       backslash or forward slash characters.
  777.  
  778. -size [+/-]n
  779.       This primary will evaluate as true if the size of  the
  780.       current file matches n bytes as follows:
  781.  
  782.       -n    True if the  current  file  is  smaller  than  n
  783.             bytes.
  784.  
  785.       +n    True if the current file is larger than n bytes.
  786.  
  787.       n     Trues if the size of the current file is exactly
  788.             n bytes.
  789.  
  790.       n can be  followed  by  the  letter  'k'  to  indicate
  791.       kilobytes,  or  the  letter 'm' to indicate megabytes.
  792.       Otherwise n is assumed to represent bytes.
  793.  
  794.       To find all files on drive C larger than  1  megabyte,
  795.       use any of the following commands:
  796.  
  797.            find c:/ -size +1024000
  798.            find c:/ -size +1024k
  799.            find c:/ -size +1m
  800.  
  801. -type type
  802.       This primary will evaluate as true if the current file
  803.       matches  type,  which  can be one of "f" (file) or "d"
  804.       (directory).  To list all the  directories  below  the
  805.       current working directory, use a command of the form:
  806.  
  807.            find . -type d
  808.  
  809. -mtime [+/-]n
  810.       This primary will evaluate as true if the current file
  811.       modification time matches n as follows:
  812.  
  813.       -n    True if the current file  modification  time  is
  814.             less than n days old.
  815.  
  816.       +n    True if the current file  modification  time  is
  817.             more than n days old.
  818.  
  819.       n     True if the current file  modification  time  is
  820.             exactly  n  days old, where n is measured in 24-
  821.             hour periods (e.g., 0=today, 1=yesterday, etc.).
  822.  
  823.       n can be followed by the letter 'h' to indicate hours,
  824.       or the letter 'm' to indicate minutes.  Otherwise n is
  825.       assumed to represent days.
  826.  
  827.       To check for all files on the current drive that  have
  828.       been modified in the last 24 hours, use the command:
  829.  
  830.            find / -mtime -1
  831.  
  832. -exec utility [argument ...] ;
  833.       This primary will invoke the utility named by  utility
  834.       with  the indicated arguments.  The end of the primary
  835.       must be punctuated by a ; (semi-colon), separated from
  836.       the  last argument by one or more space characters.  A
  837.       utility  name  or   argument   containing   only   the
  838.       characters  {}  will  be  replaced by the current path
  839.       name.  For example:
  840.  
  841.            find . -name *.c -exec ls -l {} ;
  842.  
  843.       will search for all files with  the  suffix  ".c"  and
  844.       call  the ls utility for each one, passing the current
  845.       path name as the input file name to ls.
  846.  
  847.       This primary returns true if utility  returns  a  zero
  848.       exit status; otherwise it returns false.
  849.  
  850. -ok utility [argument ...] ;
  851.       This primary is equivalent to -exec, except that  find
  852.       will display the command line before executing it, and
  853.       request affirmation that it is to be executed.
  854.  
  855. -print
  856.       This primary always evaluates to true and  causes  the
  857.       current path name to be written to standard output.
  858.  
  859. -depth
  860.       This primary  always  evaluates  to  true  and  causes
  861.       descent  of the directory hierarchy to be done so that
  862.       all  directory  entries  are  acted  on   before   the
  863.       directory itself.  By default, the directory itself is
  864.       acted on  first,  followed  by  the  entries  in  that
  865.       directory.   To see the difference this primary makes,
  866.       run the following two commands and note the  different
  867.       output:
  868.  
  869.            find /
  870.            find / -depth
  871.  
  872. If no expression is present, -print  will  be  used  as  the
  873. expression.   Also, if the given expression does not contain
  874. one of  the  primaries  -print,  -exec  or  -ok,  the  given
  875. expression will, in effect, be replaced by:
  876.  
  877.      ( expression ) -print
  878.  
  879. #name fmt
  880. #whatis fmt - simple text formatter
  881.  
  882. fmt [-j] [-b|C|c|i] [-w width] [file ...]
  883.  
  884. fmt accepts the following options:
  885.  
  886. -j    Justify text.
  887.  
  888. -b    Block paragraphs.
  889.  
  890. -C    Centred paragraphs.
  891.  
  892. -c    Crown paragraphs.
  893.  
  894. -I    Indented paragraphs.
  895.  
  896. -w    Line width.
  897.  
  898. fmt writes its output to  standard  output,  and  reads  its
  899. input from standard input if no file is specified.
  900.  
  901. #name fold
  902. #whatis fold - break lines in text files
  903.  
  904. fold [-bs] [-w width] [file ...]
  905.  
  906. fold accepts the following options:
  907.  
  908. -b    Measure line widths in bytes.  Otherwise, line  widths
  909.       are measured in column positions, after tab, backspace
  910.       and carriage return processing.
  911.  
  912. -s    Break lines at the last blank character (space or tab)
  913.       within width column positions (or bytes).
  914.  
  915. -w    Line  width  in  column  positions  (or  bytes).   The
  916.       default, if this argument is not specified, is 80.
  917.  
  918. fold writes its output to standard  output,  and  reads  its
  919. input from standard input if no file is specified.
  920.  
  921. #name grep
  922. #whatis grep - search a file or files for a pattern
  923.  
  924. grep [-E|-F] [-cilnqsvx] [-f pattern_file]... -e  pattern...
  925.      [file ...]
  926. grep [-E|-F] [-cilnqsvx] [-e pattern]... -f  pattern_file...
  927.      [file ...]
  928. grep [-E|-F] [-cilnqsvx] pattern... [file ...]
  929.  
  930. grep accepts the following options:
  931.  
  932. -E    Reserved for future use.
  933.  
  934. -F    Match using fixed strings.  Regard each pattern  as  a
  935.       fixed string instead of a regular expression.
  936.  
  937. -c    Write only a count of selected lines.
  938.  
  939. -e    Add pattern to the list  of  patterns  to  be  matched
  940.       against the input. Use this option to specify multiple
  941.       patterns on the command line.
  942.  
  943. -f    Read one or more patterns from  pattern_file  and  add
  944.       them to the list of patterns to be matched against the
  945.       input.
  946.  
  947. -i    Ignore case.
  948.  
  949. -l    Write only the  names  of  files  containing  matching
  950.       lines  to standard output. Path names are written once
  951.       per file searched.
  952.  
  953. -n    Display line numbers.
  954.  
  955. -q    Quiet.   Exit  with  zero  status  if  input  line  is
  956.       matched.  No output is written.
  957.  
  958. -s    Suppress the writing of error messages.
  959.  
  960. -v    Display unmatched lines.
  961.  
  962. -x    Match only input lines that use all the characters  in
  963.       the  line  to  match an entire fixed string or regular
  964.       expression.
  965.  
  966. If no -e or -f option is present, the first  argument  after
  967. the  options  is  assumed  to contain a pattern for matching
  968. against the  input.  grep  writes  its  output  to  standard
  969. output,  and  reads its input from standard input if no file
  970. is specified.
  971.  
  972. #name head
  973. #whatis head - display the first part of a file
  974.  
  975. head [-s number] [-n lines] [file ...]
  976.  
  977. head accepts the following options:
  978.  
  979. -s    Skip number input lines.
  980.  
  981. -n    Display lines (default 10)  from  the  start  of  each
  982.       input file.
  983.  
  984. head writes its output to standard output, and  reads  input
  985. from standard input if no file is specified.
  986.  
  987. #name join
  988. #whatis join - join files
  989.  
  990. join [-a N | -v N] [-e string] [-o list] [-t char]
  991.      [-1 field] [-2 field] file1 file2
  992.  
  993. join accepts the following options:
  994.  
  995. -a N  Write an output line for each unpairable line in  file
  996.       "N",  where  "N"  can  be  1  or 2, in addition to the
  997.       default  output.   If  both  "-a1"   and   "-a2"   are
  998.       specified, all unpairable lines are output.
  999.  
  1000. -e string
  1001.       Replace empty output fields with "string" in the  list
  1002.       selected by "-o".
  1003.  
  1004. -o list
  1005.       Construct the output line as defined by  "list",  each
  1006.       element of which specifies either "0" (the join field)
  1007.       or "file.field", where "file" is the file number (1 or
  1008.       2) and "field" is an integer field number (starting at
  1009.       1).  Elements in list can be separated  by  commas  or
  1010.       blanks.
  1011.  
  1012. -t char
  1013.       Use character "char" as the field separator  for  both
  1014.       input   and  output.   By  default,  the  input  field
  1015.       separator is one or more blank characters; the  output
  1016.       field  separator is a single space character.  When "-
  1017.       t" is specified, each appearance of "char" is regarded
  1018.       as significant.
  1019.  
  1020. -v N  Instead of the default output, produce only a line for
  1021.       each  unpairable  line in file number "N".  If both "-
  1022.       v1" and "-v2" are specified, all unpairable lines  are
  1023.       output.
  1024.  
  1025. -1 field
  1026.       Join on the "field"th field of  file  1  (field  1  by
  1027.       default).
  1028.  
  1029. -2 field
  1030.       Join on the "field"th field of  file  2  (field  1  by
  1031.       default).
  1032.  
  1033. The join utility performs an equality join on fields  within
  1034. file1  and file2.  By default, the first field of each input
  1035. line is used as the join field, where  field1  of  file1  is
  1036. compared with field1 of file2.  When the join fields compare
  1037. equal (i.e., they are paired), the default  output  consists
  1038. of the join field, the remaining fields from file1, followed
  1039. by the remaining fields from file2, with  each  field  being
  1040. separated  by  a  single  space  character.  file1 and file2
  1041. should be sorted alphabetically.
  1042.  
  1043. #name ls
  1044. #whatis ls - list directory contents
  1045.  
  1046. ls [-CFLRadlmprtx1] [file ...]
  1047.  
  1048. ls accepts the following options:
  1049.  
  1050. -C    Write multi-column output with entries sorted down the
  1051.       columns.
  1052.  
  1053. -F    Write a slash character  (/)  immediately  after  each
  1054.       name that is a directory.
  1055.  
  1056. -L    Display long file names  exactly  as  they  appear  in
  1057.       filestore (32-bit version only).
  1058.  
  1059. -R    Recursively   list   sub-directories   as   they   are
  1060.       encountered.
  1061.  
  1062. -a    Write out all directory entries.  By default,  entries
  1063.       beginning with a dot (.) are not listed.
  1064.  
  1065. -d    List directory names rather than their  contents.   -R
  1066.       is ignored if -d is specified.
  1067.  
  1068. -l    Long format listing.  This produces a separate line of
  1069.       output  for  each  file,  containing: file mode, owner
  1070.       name, group, file size (in bytes), date  and  time  of
  1071.       last file update, file name.  The file mode is defined
  1072.       as per  UNIX,  but  note  that  the  group  and  other
  1073.       permissions  are  artificial on a Windows system.  The
  1074.       owner is always "root" on Windows, and  the  group  is
  1075.       always 0.
  1076.  
  1077. -m    Stream output format; file names are listed across the
  1078.       screen, separated by commas.
  1079.  
  1080. -p    Same as -F.
  1081.  
  1082. -r    Reverse  the  sort  order  to  get  reverse  collating
  1083.       sequence or oldest first.
  1084.  
  1085. -t    Sort by time modified (most recently modified  first).
  1086.       This  ordering  is  reversed  if -r is also specified.
  1087.       (Warning.  Time sorting can take a  few  seconds  when
  1088.       listing  directories  containing  a  large  number  of
  1089.       files).
  1090.  
  1091. -x    Write multi-column output with entries  sorted  across
  1092.       the  columns.   This  is  the  default listing mode if
  1093.       neither -C, -l, -x or -1 is specified, and the  output
  1094.       device is the console.
  1095.  
  1096. -1    (The number one.)  Force single column output.
  1097.  
  1098. For each operand that  names  a  file  (possibly  containing
  1099. wild-card  characters),  the  ls command line utility writes
  1100. the name of the file or files to standard  output  with  any
  1101. associated  information  requested by the options.  For each
  1102. operand that names a directory, ls writes the names  of  all
  1103. files  contained in that directory to standard output, again
  1104. with any requested, associated information.
  1105.  
  1106. If no files are  specified,  the  contents  of  the  current
  1107. directory  are  written. If more that one file is specified,
  1108. ls processes each file name as though each had  been  passed
  1109. to a separate invocation of ls.
  1110.  
  1111. If no options are specified, -x is assumed; that is, ls will
  1112. produce  a  multi-column  listing with entries sorted across
  1113. columns.
  1114.  
  1115. #name man
  1116. #whatis man - display command information
  1117.  
  1118. man [-k] name ...
  1119.  
  1120. man accepts the following options:
  1121.  
  1122. -k    Interpret name as a keyword.  The man utility searches
  1123.       a  database  containing a summary of the WinXs command
  1124.       line utilities for instances of name.  Each  resulting
  1125.       line is written to standard output.
  1126.  
  1127. If -k is not specified, man writes information about each of
  1128. the   utilities  identified  by  the  name  operands.   This
  1129. information is written to  standard  output,  which  can  be
  1130. redirected if required.
  1131.  
  1132. #name mv
  1133. #whatis mv - move files
  1134.  
  1135. mv [-fiRr] source_file target_file
  1136. mv [-fiRr] source_file ... directory
  1137.  
  1138. mv accepts the following options:
  1139.  
  1140. -f    Overwrite  the  target  file  if  it  already  exists,
  1141.       without  prompting  for  confirmation.   Any  previous
  1142.       occurrences of -i are ignored.
  1143.  
  1144. -i    Prompt for confirmation before overwriting an existing
  1145.       file.  Any previous occurrences of -f are ignored.  If
  1146.       neither -f or -i is specified on the command line,  -i
  1147.       is assumed.
  1148.  
  1149. -R    Does nothing.  This option is included for consistency
  1150.       with the cp utility.
  1151.  
  1152. -r    Same as -R.
  1153.  
  1154. In  the  first  form,  mv  simply   moves   source_file   to
  1155. target_file.  This form is assumed when the final operand is
  1156. a file, or when target_file does not  identify  an  existing
  1157. filestore object.
  1158.  
  1159. In the second form, mv moves each file named by  source_file
  1160. to  the  target  directory,  which  must exist; that is, the
  1161. target directory will not be created by the mv utility.   In
  1162. this  form,  source_file  can  identify  either  a file or a
  1163. directory.  In the case of a directory, the entire directory
  1164. structure rooted at source_file will be moved.
  1165.  
  1166. In addition to moving the data of a file, mv also duplicates
  1167. the  mode  of  the  file and its current access/modification
  1168. times.
  1169.  
  1170. #name nl
  1171. #whatis nl - line numbering filter
  1172.  
  1173. nl [-b type] [-v startnum] [-i incr] [-s sep] [-w width] [-n
  1174. format] [file ...]
  1175.  
  1176. nl accepts the following options:
  1177.  
  1178. -b    Specifies which lines should be numbered,  where  type
  1179.       can  be  one  of a (number all lines),  t (number non-
  1180.       blank lines only), n (no line numbering), or  pString.
  1181.       In  the  latter  case, String is a regular expression;
  1182.       only matching lines are numbered.  The default type is
  1183.       t.
  1184.  
  1185. -v    The initial value used to number lines (default 1).
  1186.  
  1187. -i    The line number increment value (default 1).
  1188.  
  1189. -s    The character or characters used to separate the  line
  1190.       number  from  the  text line.  The default is a single
  1191.       tab character.
  1192.  
  1193. -w    The width of a line number in columns (default 6).
  1194.  
  1195. -n    The line numbering format, where format can be one  of
  1196.       ln  (left  justified),  rn  (right  justified),  or rz
  1197.       (right justified with leading zeros).
  1198.  
  1199. nl writes its output to standard output, and reads its input
  1200. from standard input if no file is specified.
  1201.  
  1202. #name od
  1203. #whatis od - dump files in various formats
  1204.  
  1205. od [-v] [-A addr_base] [-j skip] [-N count] [-t type_string]
  1206. [file...]
  1207.  
  1208. od accepts the following options:
  1209.  
  1210. -A addr_base
  1211.       Specifies the input base.  The addr_base option  is  a
  1212.       single  character,  which can be one of 'd' (decimal),
  1213.       'o' (octal) or 'x' (hexadecimal).  The default is  '-A
  1214.       o'.
  1215.  
  1216. -j skip
  1217.       Jump over 'skip'  bytes  from  the  beginning  of  the
  1218.       input.  The od utility will jump over the first 'skip'
  1219.       bytes of  the  concatenated  input.   By  default  the
  1220.       'skip'  option  is  interpreted  as  a decimal number.
  1221.       With a leading 0 it is treated  as  an  octal  number;
  1222.       with a leading 0x or 0X it is treated as a hexadecimal
  1223.       number.  'skip' can be followed by the  character  'b'
  1224.       indicating 512 byte blocks should be skipped, by a 'k'
  1225.       indicating kilobytes blocks, or by  a  'm'  indicating
  1226.       megabyte blocks.
  1227.  
  1228. -N count
  1229.       Format no  more  than  'count'  bytes  of  input.   By
  1230.       default  'count'  is  interpreted as a decimal number.
  1231.       With a leading 0 it is interpreted as an octal number;
  1232.       with a leading 0x or 0X it is treated as a hexadecimal
  1233.       number.  The  characters  'b',  'k'  and  'm'  can  be
  1234.       appended to 'count' with the effects described above.
  1235.  
  1236. -t type_string
  1237.       Specifies one  or  more  input  types.   'type_string'
  1238.       consists of a type specification character followed by
  1239.       an optional qualifier.  The valid  type  specification
  1240.       characters   are   'a'   (interpret   bytes  as  7-bit
  1241.       characters  in  the  ISO/IEC  646:1991   International
  1242.       Reference  Version  standard), 'c' (interpret bytes as
  1243.       8-bit  characters),   'd'   (decimal   numbers),   'f'
  1244.       (floating  point  numbers),  'o'  (octal numbers), 'u'
  1245.       (unsigned  decimal  numbers),  or   'x'   (hexadecimal
  1246.       numbers).  The type specification characters 'd', 'f',
  1247.       'o', 'u' and  'x'  can  be  followed  by  an  optional
  1248.       decimal qualifier specifying the number of bytes to be
  1249.       transformed (e.g. '-t x4' indicates 4-byte hexadecimal
  1250.       values).   The  type  specification  character 'f' can
  1251.       also be followed by the characters 'F',  'D'  or  'L',
  1252.       indicating   float,   double  and  long  double  types
  1253.       respectively.  The type specification characters  'd',
  1254.       'o', 'u' or 'x' can be followed by the characters 'C',
  1255.       'S', 'I' or 'L', indicating char, short, int  or  long
  1256.       types respectively.  The default setting is '-t o2'.
  1257.  
  1258. -v    Write all input data.  Without this option, groups  of
  1259.       output  lines  that  have  identical  content are only
  1260.       output once, followed by a line  containing  a  single
  1261.       asterisk character (*).
  1262.  
  1263. The od utility copies each input file  to  standard  output,
  1264. transforming  the  input  data according to the output types
  1265. specified by the options.  Input is read from standard input
  1266. if no files are given on the command line.
  1267.  
  1268. #name paste
  1269. #whatis paste - concatenate corresponding or subsequent lines from files
  1270.  
  1271. paste [-s] [-d list] [file ...]
  1272.  
  1273. paste accepts the following options:
  1274.  
  1275. -d list
  1276.       "list" is a blank or comma separated list of elements.
  1277.       Each  element  in list specifies a character to use to
  1278.       replace newline characters in the input.   An  element
  1279.       can  be an ordinary character, or one of \n (newline),
  1280.       \t (tab), \\ (backslash) or  \0  (empty  string).  The
  1281.       list is circular; that is, when the list is exhausted,
  1282.       the first element from the list is reused.  When -s is
  1283.       specified,  the list is reset at the start of each new
  1284.       input file; when -s is  not  specified,  the  list  is
  1285.       reset  at  the  start  of each new line.  If -d is not
  1286.       specified, a tab character is used by default.
  1287.  
  1288. -s    Concatenate all  the  lines  of  each  input  file  in
  1289.       command line order.  Otherwise, concatenate successive
  1290.       lines from each of the input files (that is, the first
  1291.       line  of  output  will  contain  line1 from file1, the
  1292.       first element from "list", the first line from  file2,
  1293.       etc.).
  1294.  
  1295. The paste utility concatenates the corresponding lines  from
  1296. its  input  files  (-s  not  specified),  or it concatenates
  1297. successive lines from each input file (-s  specified).   The
  1298. newline  character  of  every line, except the line from the
  1299. last input file (or the last line from each file  if  -s  is
  1300. specified),  is  replaced  by  the next character in the "-d
  1301. list".  If no files are specified on the command line, or if
  1302. "-"  is  specified,  input  is read from the standard input.
  1303. Output is always written to standard output.
  1304.  
  1305. #name pg
  1306. #whatis pg - display file page-by-page
  1307.  
  1308. pg [options] [file ...]
  1309.  
  1310. pg accepts the following options:
  1311.  
  1312. -Num      Change window size (default 24 lines).
  1313.  
  1314. -pString  Use String as the command prompt (default ":").
  1315.  
  1316. +Num      Start displaying  the  file  at  line  number  Num
  1317.           (default 1).
  1318.  
  1319. +String   Start  displaying  the  file  at  the  first  line
  1320.           containing  the  regular  expression identified by
  1321.           String.
  1322.  
  1323. The pg utility is a filter that allows files to be displayed
  1324. one  screenful  at  a  time.   Each  screen is followed by a
  1325. prompt.  If you press the carriage-return key, another  page
  1326. of  the  file  is  displayed.   Other  command  options  are
  1327. described below.
  1328.  
  1329. This utility is intended as an alternative to  the  MORE.EXE
  1330. program delivered with all DOS systems.  It provides forward
  1331. and backward file movement commands, text searching, and can
  1332. be used at the end of a pipeline to peruse command output.
  1333.  
  1334. The following commands can be issued at the command prompt:
  1335.  
  1336. PAGE_DOWN     forward one screen
  1337. PAGE_UP       back one screen
  1338. DOWN_ARROW    forward one line
  1339. UP_ARROW      back one line
  1340. RIGHT_ARROW   forward one half screen
  1341. LEFT_ARROW    back one half screen
  1342. HOME          start of file
  1343. END           end of file
  1344. h             help
  1345. q or Q        quit
  1346. [+-N]\n       Nth next page
  1347. n             next file
  1348. p             previous file
  1349. Nw or Nz      set window size to N lines
  1350. s savefile    save current file in savefile
  1351. /pattern/     search forward for pattern
  1352. ?pattern?     search backward for pattern
  1353. !command      execute command
  1354.  
  1355. #name rm
  1356. #whatis rm - remove files and directories
  1357.  
  1358. rm [-fiRr] source_file ...
  1359.  
  1360. rm accepts the following options:
  1361.  
  1362. -f    Remove source_file from the system  without  prompting
  1363.       for  confirmation.  Any previous occurrences of the -i
  1364.       option are ignored.
  1365.  
  1366. -i    Prompt for confirmation  before  removing  source_file
  1367.       from  the  system.  Any previous occurrences of the -f
  1368.       option are ignored.  If neither -f or -i is  specified
  1369.       on the command line, the -i option is assumed.
  1370.  
  1371. -R    Remove the file hierarchy identified  by  source_file,
  1372.       including  all files and subdirectories of source_file
  1373.       and  source_file  itself.    When   this   option   is
  1374.       specified, source_file can identify either a file or a
  1375.       directory.   Otherwise,  if  neither  -R  or   -r   is
  1376.       specified, source_file can only identify a file.
  1377.  
  1378. -r    Same as -R.
  1379.  
  1380. If source_file is either  "."  or  "..",  rm  will  write  a
  1381. diagnostic  message  to  the console and proceed to the next
  1382. operand (if any).  Be especially careful of the classic  "rm
  1383. -rf  *" use of this utility, which will delete everything in
  1384. the current directory, all its subdirectories, and all their
  1385. contents.  The effects of this command are irreversible.
  1386.  
  1387. #name sdiff
  1388. #whatis sdiff - list file differences side-by-side
  1389.  
  1390. sdiff [-ls] [-w width] file1 file2
  1391.  
  1392. sdiff accepts the following options:
  1393.  
  1394. -l    List all lines from file1 but  only  list  lines  from
  1395.       file2 that differ or are not present in file1.
  1396.  
  1397. -s    List  differences  only,  introducing  each   set   of
  1398.       differences as per the diff utility.
  1399.  
  1400. -w width
  1401.       Set the line width to "width" characters (default 80).
  1402.  
  1403. The  sdiff  utility  calls  "diff  -b"  to   determine   the
  1404. differences  between file1 and file2.  It then processes the
  1405. output so that file1 and file2 are listed side-by-side, with
  1406. difference  marks  appearing  in  the margin between the two
  1407. columns of output.  A "|" character in this margin indicates
  1408. lines  that  are  different,  a "<" indicates extra lines in
  1409. file1, and a  ">"  indicates  extra  lines  in  file2.   The
  1410. default output writes all the lines from both files.  Output
  1411. is always written to standard output.
  1412.  
  1413. #name sed
  1414. #whatis sed - stream editor
  1415.  
  1416. sed [-n] script [file ...]
  1417. sed [-n] [-e script] ... [-f script-file] ... [file ...]
  1418.  
  1419. sed accepts the following options:
  1420.  
  1421. -n    Suppress the default output.
  1422.  
  1423. -e    Add the editing command specified by script to the end
  1424.       of the script of editing commands.  Use this option to
  1425.       specify multiple editing commands on the command line.
  1426.  
  1427. -f    Read one or more editing  commands   from  script_file
  1428.       and add them to the end of the editing script.
  1429.  
  1430. If file is not specified on the command line, sed reads  its
  1431. input  from standard input.  The output is always written to
  1432. standard output.
  1433.  
  1434. #name sort
  1435. #whatis sort - sort or merge text files
  1436.  
  1437. sort [-bdfimnru] [-k keydef] [-t  char]  [-o  output]  [file
  1438. ...]
  1439.  
  1440. sort accepts the following options:
  1441.  
  1442. -b    Ignore leading blanks when  determining  the  starting
  1443.       and ending positions of a restricted sort key.
  1444.  
  1445. -d    Dictionary ordering.
  1446.  
  1447. -f    Fold character case.
  1448.  
  1449. -i    Ignore non-printing characters.
  1450.  
  1451. -m    Merge only.   Assumes  the  input  files  are  already
  1452.       sorted.
  1453.  
  1454. -n    Sort numerically.
  1455.  
  1456. -r    Reverse sort order.
  1457.  
  1458. -u    Unique.  Suppress all but one in  each  set  of  lines
  1459.       that have equal sort keys.
  1460.  
  1461. -k    keydef specifies a restricted sort key.
  1462.  
  1463. -t    Use char as the field separator character.
  1464.  
  1465. -o    Write output to the file named by output, rather  than
  1466.       to standard output.
  1467.  
  1468. The command line version of sort  sorts  the  lines  of  all
  1469. named  files  together  and  writes  the  result to standard
  1470. output, or output if the -o option is specified.
  1471.  
  1472. #name split
  1473. #whatis split - break a file into fixed size pieces
  1474.  
  1475. split [[-l count]|[-b n[k|m]] [file [suffix]]
  1476.  
  1477. split accepts the following options:
  1478.  
  1479. -l    Split file into one  or  more  files  each  containing
  1480.       count lines.
  1481.  
  1482. -b    Split file into n byte chunks, nb 512-byte chunks,  nk
  1483.       kilobyte chunks, or nm megabyte chunks.
  1484.  
  1485. The  generated  files   will   have   names   beginning   at
  1486. file.suffix.   If file is not specified on the command line,
  1487. input will be taken from standard  input  and  output  files
  1488. will be named xaa, xab, etc..
  1489.  
  1490. #name strings
  1491. #whatis strings - find printable strings in a file
  1492.  
  1493. strings [-n number] [-t format] [file ...]
  1494.  
  1495. strings accepts the following options:
  1496.  
  1497. -n    Specifies the minimum string length in bytes  (default
  1498.       4).
  1499.  
  1500. -t    Each string is written to the output preceded  by  its
  1501.       byte  offset.  The format is a single character d (the
  1502.       offset will be written in decimal), o (the offset will
  1503.       be written in octal), or x (the offset will be written
  1504.       in hexadecimal).
  1505.  
  1506. strings writes its output to standard output, and reads  its
  1507. input from standard input if no file is specified.
  1508.  
  1509. #name tail
  1510. #whatis tail - display the last part of a file
  1511.  
  1512. tail [-f][-n lines] [file ...]
  1513.  
  1514. tail accepts the following options:
  1515.  
  1516. -f    Monitor a file as it grows.  Every second, tail  wakes
  1517.       up  and  displays any new data added to the end of the
  1518.       file.  This flag is ignored if reading  from  a  pipe.
  1519.       Use  Ctrl-C to terminate the command when this flag is
  1520.       specified.
  1521.  
  1522. -n    Display lines (default 10) from the end of each  input
  1523.       file.
  1524.  
  1525. tail writes its output to standard output, and  reads  input
  1526. from standard input if no file is specified.
  1527.  
  1528. #name tee
  1529. #whatis tee - duplicate standard input
  1530.  
  1531. tee [-a] [file ...]
  1532.  
  1533. tee accepts the following options:
  1534.  
  1535. -a    Append the output to  files  rather  than  overwriting
  1536.       them.
  1537.  
  1538. The tee utility copies standard input  to  standard  output,
  1539. making a copy in zero or more files.
  1540.  
  1541. #name touch
  1542. #whatis touch - change file modification time
  1543.  
  1544. touch [-acm] [-r ref_file | -t time] file...
  1545.  
  1546. touch accepts the following options:
  1547.  
  1548. -a    Reserved for future use.
  1549.  
  1550. -c    Normally, touch  will  create  file  if  it  does  not
  1551.       already exist.  Specifying -c overrides this behaviour
  1552.       and file will not be created.
  1553.  
  1554. -m    Reserved for future use.
  1555.  
  1556. -r ref_file
  1557.       Use the modification time of ref_file instead  of  the
  1558.       current time.
  1559.  
  1560. -t time
  1561.       Use the specified time instead of  the  current  time,
  1562.       where time is a decimal number of the form:
  1563.  
  1564.         [[CC]YY]MMDDhhmm[.SS].
  1565.  
  1566.       The two digit sequences represent:
  1567.  
  1568.       CC    The first two digits of the year (century).
  1569.  
  1570.       YY    The second two digits of the year.
  1571.  
  1572.       MM    The month of the year [01-12].
  1573.  
  1574.       DD    The day of the month [01-31].
  1575.  
  1576.       hh    The hour of the day [00-23].
  1577.  
  1578.       mm    The minute of the hour [00-59].
  1579.  
  1580.       SS    The second of the minute [00-61].
  1581.  
  1582.       CC and YY are optional.   If  neither  is  given,  the
  1583.       current year is assumed.  If YY is specified but CC is
  1584.       not, YY values in the range  [69-99]  are  assumed  to
  1585.       refer  to  the 20th century (i.e., 19YY), YY values in
  1586.       the range [00-68] are assumed to  refer  to  the  21st
  1587.       century (i.e., 20YY).
  1588.  
  1589.       Note that on only dates between Jan 1, 1980 and Jan 1,
  1590.       2036 are supported on Windows systems.  The results of
  1591.       specifying   any   date   outside   this   range   are
  1592.       unspecified.
  1593.  
  1594. If neither -r or -t is specified, the modification  time  of
  1595. file will be set to the current time.
  1596.  
  1597. #name tr
  1598. #whatis tr - translate characters
  1599.  
  1600. tr [-c] string1 string2
  1601. tr -d [-c] string1
  1602. tr -s [-c] string1
  1603.  
  1604. tr accepts the following options:
  1605.  
  1606. -c    Complement string1.
  1607.  
  1608. -d    Delete characters in string1.
  1609.  
  1610. -s    Squeeze characters in string1.
  1611.  
  1612. If neither -d nor -s is specified, tr will replace all input
  1613. characters  identified  in  String1  with  the corresponding
  1614. character  in  String2.   The  input  is  always  read  from
  1615. standard input, and the output is always written to standard
  1616. output.
  1617.  
  1618. #name uncompress
  1619. #whatis uncompress - restore a compressed file to its original state
  1620.  
  1621. compress -d [-c] [file ...]
  1622.  
  1623. compress accepts the following options:
  1624.  
  1625. -c    cat output.  Normally the named files are uncompressed
  1626.       in  place.  If this option is specified, the output is
  1627.       written to standard output instead.
  1628.  
  1629. If file is not specified, the input is  read  from  standard
  1630. input and the output is written to standard output.
  1631.  
  1632. #name uniq
  1633. #whatis uniq - report or filter out repeated lines in a file
  1634.  
  1635. uniq [-c|-d|-u] [-f fields] [-s char] [infile [outfile]]
  1636.  
  1637. uniq accepts the following options:
  1638.  
  1639. -c    Precede each output line with a count of the number of
  1640.       times the line occurred in the input.
  1641.  
  1642. -d    Suppress the writing of lines that are not repeated in
  1643.       the input.
  1644.  
  1645. -f field
  1646.       Begin the comparison of adjacent lines  in  the  input
  1647.       starting at the specified field number (default 1).  A
  1648.       field is regarded as a  maximal  string  of  non-blank
  1649.       characaters,  where  a  blank  character is defined as
  1650.       <tab> or  <space>.   If  this  option  specifies  more
  1651.       fields  than  are  present  in  an  input line, a null
  1652.       string is used for comparison.
  1653.  
  1654. -s chars
  1655.       Ignore  the  first  "chars"  characters   when   doing
  1656.       comparisons.   If  -f  is  also  specified, ignore the
  1657.       first "chars"  characters  after  the  first  "fields"
  1658.       fields.
  1659.  
  1660. -u    Suppress the writing of lines that are repeated in the
  1661.       input.
  1662.  
  1663. The uniq utility reads  an  input  file  comparing  adjacent
  1664. lines,  and  writes one copy of each line to the output.  If
  1665. infile is not specified, standard input is read;  output  is
  1666. written  to  outfile,  or  standard output if outfile is not
  1667. specified.
  1668.  
  1669. #name unix2dos
  1670. #whatis unix2dos - convert UNIX to DOS text file format
  1671.  
  1672. unix2dos [-o output] file ...
  1673.  
  1674. unix2dos accepts the following options:
  1675.  
  1676. -o    Normally unix2dos converts files in  place.   If  this
  1677.       option  is specified, and output names a file, all the
  1678.       input is converted and appended to the named file;  if
  1679.       it  names  a  directory, the input files are copied to
  1680.       the named directory and then converted.  If file names
  1681.       a  directory, this option must be specified and output
  1682.       must also identify a directory.
  1683.  
  1684. #name uudecode
  1685. #whatis uudecode - decode a binary file
  1686.  
  1687. uudecode [input-file]
  1688.  
  1689. If input-file is not specified, uudecode will read its input
  1690. from  standard  input.  Output is always written to standard
  1691. output.
  1692.  
  1693. #name uuencode
  1694. #whatis uuencode - encode a binary file
  1695.  
  1696. uuencode [input-file] unix-name
  1697.  
  1698. If input-file is not specified, uuencode will read its input
  1699. from  standard  input.  Output is always written to standard
  1700. output.
  1701.  
  1702. #name wc
  1703. #whatis wc - count words, lines and bytes in a file
  1704.  
  1705. wc [-lw] [-c | -m] [file ...]
  1706.  
  1707. wc accepts the following options:
  1708.  
  1709. -l    Count lines
  1710.  
  1711. -w    Count words
  1712.  
  1713. -c    Count bytes
  1714.  
  1715. -m    Count characters
  1716.  
  1717. If no options are specified,  lines,  words  and  bytes  are
  1718. counted  by  default.  The  output  is  written  to standard
  1719. output.  Input is taken from standard input if file  is  not
  1720. specified.
  1721.  
  1722. #name whence
  1723. #whatis whence - interpret command name
  1724.  
  1725. whence [-v] name ...
  1726.  
  1727. whence accepts the following options:
  1728.  
  1729. -v    List all possible paths to 'name'.
  1730.  
  1731. The whence command accepts one or  more  command  names  and
  1732. shows  how  these  names  will be interpreted by the command
  1733. interpreter.  That is, it lists the full  pathname  of  each
  1734. input  command,  complete  with  its extension.  If the '-v'
  1735. option is specified, whence lists all instances  of  'name'.
  1736. For example, the command:
  1737.  
  1738.     > whence -v find
  1739.  
  1740. might produce the output:
  1741.  
  1742.     find is C:\WINXS32\BIN\find.exe
  1743.     find is C:\WINDOWS\COMMAND\find.exe
  1744.  
  1745. indicating  that  the  command   will   be   executed   from
  1746. "C:\WINXS32\BIN\find.exe",  and  also  that there is another
  1747. find command located in "C:\WINDOWS\COMMAND\find.exe".  This
  1748. second   command  is  effectively  hidden  unless  the  full
  1749. pathname is specified.
  1750.  
  1751. To change the above order of commands, you  can  modify  the
  1752. PATH variable to change the directory search order.
  1753.  
  1754. #name xargs
  1755. #whatis xargs - construct argument lists and execute a command
  1756.  
  1757. xargs [-ipqtx] [-I replstr] [-n number] [-s  size]
  1758.       [utility [args ...]]
  1759.  
  1760. xargs accepts the following options:
  1761.  
  1762. -I replstr
  1763.       Insert mode.  "utility" will be executed for each line
  1764.       of  input,  replacing  "replstr"  in  "args"  with the
  1765.       contents of the input line.
  1766.  
  1767. -i    Equivalent to "-I {}"
  1768.  
  1769. -n number
  1770.       Limit the number of arguments in  each  invocation  of
  1771.       utility to "number".
  1772.  
  1773. -p    Prompt mode.   Prompt  for  confirmation  before  each
  1774.       invocation of utility.
  1775.  
  1776. -q    Quote mode.  When insert mode is specified, quote each
  1777.       instance of "replstr" in args after substitution.  You
  1778.       should use this option  if  the  input  contains  file
  1779.       names that may contain spaces.
  1780.  
  1781. -s size
  1782.       Limit the command length to "size" bytes.
  1783.  
  1784. -t    Enable trace mode.  Each  generated  command  will  be
  1785.       displayed prior to invocation.
  1786.  
  1787. -x    Terminate the command  if  a  generated  command  line
  1788.       containing "number" arguments will not fit into "size"
  1789.       bytes.
  1790.  
  1791. The xargs utility contructs a  command  line  consisting  of
  1792. "utility", followed by "args", followed by as many arguments
  1793. read from standard input as  will  fit  into  the  specified
  1794. "number" and "size" constraints.  The constructed command is
  1795. then executed.  By default, "size" is limited to 512  bytes;
  1796. "number" is unlimited.
  1797.  
  1798. Alternatively, if insert mode is set (-I or  -i  specified),
  1799. utility  is  invoked for each line read from standard input,
  1800. taking the entire input line as  a  single  argument.   Each
  1801. instance  of "replstr" in "args" is replaced by the contents
  1802. of the input line.
  1803.  
  1804. If "utility" is not specified on the command line, "echo" is
  1805. set by default.
  1806.  
  1807.