STScI Logo

table lists


NAME · USAGE · PARAMETERS · DESCRIPTION · EXAMPLES · SEE_ALSO

NAME

table -- format single column input into a table

USAGE

table input_files

PARAMETERS

input_files
List of files to be formatted, may be STDIN.
first_col = 7
Offset to first column of table
last_col = 0
Offset to last column of table. The value last_col = 0 indicates right margin.
ncols = 0
Number of columns. The value ncols = 0 indicates maximum that will fit.
maxstrlen = 0
Maximum string length for table entry. The value maxstrlen = 0 indicates no limit.

DESCRIPTION

Task table reads a list of strings from the standard input or a list of files and assembles a nicely formatted table. If reading from multiple input files, make a separate table for each. There is no fixed limit to the size of the table which can be formatted. The table is not sorted; this should be done as a separate operation if desired.

EXAMPLES

1. Format a file containing names into a two column table. The table is sorted alphabetically first.

cl> sort names | table ncols=2

SEE ALSO

words, tokens


Source Code · Search Form · STSDAS