dump_table (version 0.0)
You can also look at:
#! /usr/bin/ksh
#########################################################################
#
# SYNTAX: dump_table file columns1 column2 column3 ...
#
# DESCRIPTION: Dumps the specified columns FITS catalog file to the
# DESCRIPTION: standard output.
# DESCRIPTION: This is basically just a wrapper for the fdump FTOOL.
#
# VERSION: 0.0
#
# HISTORY:
#
######################################################################
table=$1
########################
# read the column list
########################
columns=""
shift
typeset -i i=0
while [ $# -gt 0 ]; do
columns="${columns} $1"
shift
done
$UTIL/setup_parfile $FTOOLS/fdump.par infile=$table \
outfile=STDOUT \
rows=- \
columns="$columns" \
prhead=no \
prdata=yes \
showcol=no \
showunit=no \
showscale=no \
showrow=no \
page=no \
wrap=no \
align=no \
pagewidth=256
$FTOOLS/fdump 2>stderr$$.log
$UTIL/ftool_test fdump $? $0 2 "" stderr$$.log
exit 0