trim - trim out any extra white space from a starbase data table.
SYNOPSYS
trim < table
DESCRIPTION
trim is used to remove extra white space that may have been places in a table
by justify. It trims white space from the beginning and ends of column values.
Any white space in the middle of a column value is unmodified.
OPTIONS
- -i file
- Read input from file instead of the standard input. This
option is supplied specifically to avoid the use of the
standard input within the IRAF cl. Other users may use it
if they like.
- -o file
- Write output to file instead of the standard input.
Column Options
- -a
- Output all the existing columns in the table. This is usefull when
adding columns to a table.
- -k
- Check the validity of the input table. Exit with status is 1 if the
table is not ok.
- -u
- Read the standard input in unbuffered mode.
- -v
- Verbose error checking. Print messages about offending rows to
the standard output. Checks the entire table. If only -k is
specified the program exits when it finds the first error.
- -h
- print out only the header values.
Justification Options
The use of any justification flags implies that all the columns will be
justified. If a justification type is not given for a column with the a flag
or sticky option that column will default justified. The default
justification is left for strings and right for numbers. Justification flags
that are given as options are sticky and effect all the following columns
until additional flags are given. Flags may also be suffixed to the column
names to change the justification of a particular column. A justification
flag on a column is indicated by a ":". The width os a column may be
introduced with a ".".
-d Justify the column with its default justification. Numeric values are
right justified and text is left justified.
-l Left justify.
-c Center justify.
-r Right justify.
-e Expand the column.
-w Set the output column width.
-x Delete the column.
- -p
- Pass the column through with no justification.
SEE ALSO
- <#column>
- project columns from a starbase data table.
- <#project>
- project columns from a starbase data table.
- <#justify>
- justify columns of a starbase data table.
- <#trim>
- trim columns of an starbase data table.
- <starbase.1>
- starbase data tables introduction.
- <starbase.3>
- starbase data table C library.
- <starbase.5>
- starbase data table file format.
NOTES
This man page was written with p2man.