1getcol(1) General Commands Manual getcol(1)
2
3
4
6 getcol - Extract specified columns from an ASCII table file
7
9 getcol [-amv][-n num][-r lines][-s num] filename [column number range]
10
12 Extract specified columns from an ASCII table file
13
14
16 filename
17 Name of a ASCII table file. At least one of these must be
18 present for any values to be printed. If it is stdin or STDIN,
19 an ASCII table is expected as standard input. If there is no
20 input file, standard input is assumed.
21
22 @filename
23 Name of a file containing a list of ASCII table files. If this
24 is present, any other file names on the command line will be
25 ignored.
26
27 field range
28 Print value of these columns for the number of lines of the ta‐
29 ble specified by the -n argument after the skippiing the number
30 of lines specified by the -s argument. A value of 0 causes the
31 entire input line to be printed.
32
33 -a Sum all numeric columns selected, printing the sum on the line
34 following the result. Columns with no sum are filled with ___.
35 (Added in version 2.6.9)
36
37 -b Input is bar-separate table file
38
39 -c Add count of number of lines in each column at end
40
41 -d <number>
42 Number of decimal places in f.p. output
43
44 -e Compute medians of selected columns
45
46 -f Print range of values in selected columns
47
48 -h Print Starbase tab table header
49
50 -i Input is tab-separate table file
51
52 -k Print number of columns on first line
53
54 -l <number>
55 Number of lines to add to each line
56
57 -m Compute the means of all numeric columns selected, printing the
58 mean on the line following the result (or the line following the
59 sum if -a is used). Columns with no mean are filled with ___.
60 (Added in version 2.6.9)
61
62 -n num Print selected columns for this many lines. If not specified,
63 all lines will be read after the number of lines specified by -s
64 have been skipped.
65
66 -o OR conditions insted of ANDing them
67
68 -p Print only sum, mmean, sigma, median, or range, not entries
69
70 -r @listfile
71 -r line range Print columns from the lines specified as either
72 the first nonzero number on each line of the file listfile or
73 the comma- and hyphen- delimitied range; i.e. 1-5,10-12 will
74 print values from lines 1, 2, 3, 4, 5, 10, 11, and 12. (added
75 in version 2.6.12)
76
77 -s num Skip this many line before starting to print values. If not
78 specified, no lines will be skipped.
79
80 -t Starbase (tab-separated) table output
81
82 -v Print more information about process.
83
84
85
86 Web Page
87 http://tdc-www.harvard.edu/software/wcstools/getcol.html
88
89
91 Jessica Mink, SAO (jmink@cfa.harvard.edu)
92
93
94
958 November 2001 WCSTools getcol(1)