This HTML automatically generated with rman for NEMO
Table of Contents

Name

tabtab - concatenate or paste conformant tables, or add line numbers

Synopsis

tabtab [parameter=value]

Description

tabtab will concatenate or paste conformant tables.

In paste mode the number of rows need to be the same. In concat mode the number of columns need to be same. Although these mimic the standard paste(1) and cat(1) programs, the tables need to be conformant, though the input tables can have their own header/comment files.

If only one input file is given, a line number is added as the first column, with an optional offset. This option is equivalent to the unix nl(1) program, although "cat -n" also achieves the same result. The tabcols(1NEMO) with column number 0 will also add the row number.

Parameters

The following parameters are recognized in order; they may be given in any order if the keyword is also given. Use --help to confirm this man page is up to date.
in=
Input files.
No default. If only one file is given, line numbers are added.
out=-
Output file, must not exist yet.
Default: stdout
mode=p|c
Paste or Concat mode.
[p].
space=t|f
todo
[t]
offset=
Offset counter from 0 if line numbers are added. See also tabcols(1NEMO) with column 0 how to add row numbers.
[1]

Caveats

Table headers are lost

Examples

% nemoinp 10:15 > tab1 % tabtab tab1,tab1 > tab2 % tabtab tab1 > tab3

See Also

tabcols(1NEMO) , tabrows(1NEMO) , table(5NEMO)

Files

src/kernel/tab/tabtab.c

Author

Peter Teuben

History


26-apr-2022    Created        PJT
19-jan-2026    0.4 add offset= and allow single file numbering        PJT


Table of Contents