numtools

perform numerical operations on vectors and matrices in unix pipes
git clone git://src.adamsgaard.dk/numtools # fast
git clone https://src.adamsgaard.dk/numtools.git # slow
Log | Files | Refs | README | LICENSE Back to index

max.1 (921B)


      1 .Dd $Mdocdate$
      2 .Dt MAX 1
      3 .Os
      4 .Sh NAME
      5 .Nm max
      6 .Nd returns the maximum value for each column
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl d Ar delimstr
     10 .Op Fl n
     11 .Op Fl p Ar prec
     12 .Sh DESCRIPTION
     13 .Nm
     14 returns the maximum numerical value for each column in standard
     15 input.
     16 Input fields must be tab-separated and each line must contain
     17 the same number of fields.
     18 .Pp
     19 The options are as follows:
     20 .Bl -tag -width Ds
     21 .It Fl d Ar delimstr
     22 Separate output values by
     23 .Ar delimstr .
     24 The default delimiter is tab characters.
     25 .It Fl n
     26 Do not print a newline after the final value.
     27 .It Fl p Ar prec
     28 Print the output values with
     29 .Ar prec
     30 digits of precision.
     31 By default, the output is printed with 17 digits of precision, which is
     32 full double precision on 64-bit systems.
     33 .El
     34 .Sh EXAMPLES
     35 .Dl $ printf '1\et2\et3\en4\et5\et6\en' | max
     36 .Dl 4    5    6
     37 .Sh SEE ALSO
     38 .Xr mean 1 ,
     39 .Xr min 1 ,
     40 .Xr sum 1
     41 .Sh AUTHORS
     42 .An Anders Damsgaard Aq Mt anders@adamsgaard.dk