home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d7xx / d747 / aush.lha / AUSH / ExtraCmds.lha / englishdocs / compute.doc < prev    next >
Text File  |  1992-09-04  |  796b  |  35 lines

  1. NAME
  2.     compute - various operations on a file
  3.  
  4. SYNOPSIS
  5.     compute operation -ffield [-ddelim] [ file... ]
  6.  
  7. DESCRIPTION
  8.     compute read each line of the named file(s) (or of standard input
  9.     if no named file), extract the field-th field of this line (field
  10.     separator is delim, default is tab) and perform operation on this
  11.     field. When end of file is reached,  the  result  is  printed  on
  12.     standard output.
  13.     If you specify "-" as a file name, standard input will be used.
  14.  
  15.     Operations are :
  16.  
  17.         -s    summ
  18.         -p    product
  19.         -a    average
  20.         -g    find greatest value
  21.         -l    find lowest value
  22.  
  23. RETURN CODES
  24.     0 if all went well
  25.     1 in case of bad argument (fatal)
  26.     2 if at least one file couldn't be opened (non fatal)
  27.  
  28. CHANGES FROM UNIX
  29.     This is not an Unix command !
  30.  
  31. AUTHOR
  32.     Denis GOUNELLE
  33.     Last modified 04-Sep-92
  34.  
  35.