Scroll to navigation

getcol(1) General Commands Manual getcol(1)

Name

getcol - Extract specified columns from an ASCII table file

Synopsis

getcol [-amv][-n num][-r lines][-s num] filename [column number range]

Description

Extract specified columns from an ASCII table file

Options

Name of a ASCII table file. At least one of these must be present for any values to be printed. If it is stdin or STDIN, an ASCII table is expected as standard input. If there is no input file, standard input is assumed.
@filename
Name of a file containing a list of ASCII table files. If this is present, any other file names on the command line will be ignored.
Print value of these columns for the number of lines of the table specified by the -n argument after the skippiing the number of lines specified by the -s argument. A value of 0 causes the entire input line to be printed.
Sum all numeric columns selected, printing the sum on the line following the result. Columns with no sum are filled with ___. (Added in version 2.6.9)
Input is bar-separate table file
Add count of number of lines in each column at end
Number of decimal places in f.p. output
Compute medians of selected columns
Print range of values in selected columns
Print Starbase tab table header
Input is tab-separate table file
Print number of columns on first line
Number of lines to add to each line
Compute the means of all numeric columns selected, printing the mean on the line following the result (or the line following the sum if -a is used). Columns with no mean are filled with ___. (Added in version 2.6.9)
Print selected columns for this many lines. If not specified, all lines will be read after the number of lines specified by -s have been skipped.
OR conditions insted of ANDing them
Print only sum, mmean, sigma, median, or range, not entries
-r line range Print columns from the lines specified as either the first nonzero number on each line of the file listfile or the comma- and hyphen- delimited range; i.e. 1-5,10-12 will print values from lines 1, 2, 3, 4, 5, 10, 11, and 12. (added in version 2.6.12)
Skip this many line before starting to print values. If not specified, no lines will be skipped.
Starbase (tab-separated) table output
Print more information about process.

Web Page

http://tdc-www.harvard.edu/software/wcstools/getcol.html

Author

Jessica Mink, SAO (jmink@cfa.harvard.edu)

WCSTools 8 November 2001