This HTML automatically generated with rman for NEMO
Table of Contents

Name

tabrows - select rows/lines from a file

Synopsis

tabrows [parameter=value]

Description

tabrows selective copies lines from an input (ASCII) table. Selection is done by line numbers, 1 being the first line. Syntax follows the nemofie(1NEMO) rules.

Parameters

The following parameters are recognized in any order if the keyword is also given:
in=
input file. No default.
select=
rows/lines to select. Any nemoinp(3NEMO) expression can be used. First column is 1. [all]
comment=t|f
Count comment lines too? See also tabcomment(1NEMO) to filter comments. Default: t
nmax=
Default max allocation of the linecount in a table from a pipe [10000].
out=
output file. Default is standard output.

Caveats

Although this program uses the new table interface, the nmax= parameter is still used and thus limits the row count.

Examples

To find the square root of any number n between 1 and 100:
    nemoinp 1:100:1 > t1
    tabmath t1 t2 ’sqrt(%1)’ all
    tabrows t2 - select=n

See Also

tabcols(1NEMO) , awk(1) , tabmath(1NEMO) , tabcomment(1NEMO) , tabtab(1NEMO) , table(5NEMO)

Files

src/kernel/tab

Author

Peter Teuben

Update History


9-Mar-99    V0.9 Created     PJT
5-may-2022    V2.0 converted to table V2 interface, renamed from tablines    PJT


Table of Contents