[Previous] [Next] [Up] [Top] [Edit]

#!/bin/sh # #1 prec - adjust the precision of numeric format columns. # prec < table #

DESCRIPTION

#prec reads the precision format specification from the table's header

value "Format". This value consists of an array of column name and

printf format specification pairs. Each part of the pair is delimited

by a ":" character. For example:

# #!

TABLE1

#

Format X:4.4f Y:4.4f RA:.1@ Dec:.0@

#

# XYRADec
# ...
#
# Shows the header of a table;ee named "TABLE1". The columns X, Y, RA and
# Dec have format specifiers for use with prec. These formats are those
# available with printf and the @ astronomical format provided by tawk
# extensions.
#
# NOTES
# prec is implimented in awk. It may be of questionable use
# for large input files.
#


[Previous] [Next] [Up] [Top] [Edit]