getcol(1)
π getcol(1) β like, the manual page but make it make sense π
okay bestie, pull up a chair πͺ because we're about to talk about getcol from the General Commands Manual and honestly? it's a little icon. it grabs the columns you want out of an ASCII table file and hands them to you like a bestie passing you the aux cord. no cap. π
β¨ Name β¨
getcol β Extract specified columns from an ASCII table file
like, exactly that. you point at columns, it pulls them out. slay. π
πΈ Synopsis πΈ
getcol [-amv][-n num][-r lines][-s num] filename [column number range]
that's the whole vibe check right there. flags in the front, file and column range at the back, periodt.
π¦ Description π¦
Extract specified columns from an ASCII table file
that's it. that's the whole thing. it's giving "simple but does one job flawlessly" and honestly? main character energy. π
π Options π
here comes the part where I list every single one, because we do not skip. we do not summarise. we are thorough in this house. π«Ά
filenameβ the name of an ASCII table file. bestie, at least one of these has to be present for anything to print at all, okay? if it'sstdinorSTDIN, then an ASCII table is expected as standard input. and if there's no input file at all? standard input is assumed. no drama. π@filenameβ the name of a file that contains a list of ASCII table files. if this one shows up, then any other file names on the command line get completely ignored. like, ghosted. ignored. πfield rangeβ print the value of these columns for however many lines of the table the-nargument says, and that's after skipping however many lines-ssays. oh and a value of0? that makes the entire input line print out. the whole thing. iconic. β¨-aβ sums up all the numeric columns you selected and prints the sum on the line following the result. columns with no sum get filled with___. (added in version 2.6.9 π)-bβ input is a bar-separate table file. bars. like|. πΈ-cβ add the count of the number of lines in each column at the end-d <number>β number of decimal places in f.p. output-eβ compute the medians of the selected columns-fβ print the range of values in the selected columns-hβ print Starbase tab table header-iβ input is a tab-separate table file-kβ print the number of columns on the first line-l <number>β number of lines to add to each line-mβ compute the means of all numeric columns selected, printing the mean on the line following the result (or on the line following the sum if-ais used). columns with no mean get filled with___. (added in version 2.6.9 π«)-n numβ print selected columns for this many lines. if you don't specify it, all lines get read after the number of lines given to-shave been skipped. π-oβ OR the conditions instead of ANDing them-pβ print only sum, mmean, sigma, median, or range β not the entries themselves. like, the receipts only, no itemised list. π§Ύ-r @listfile/-r line rangeβ print columns from the lines specified as either the first nonzero number on each line of the filelistfile, or the comma- and hyphen- delimited range. i.e.1-5,10-12will print values from lines 1, 2, 3, 4, 5, 10, 11, and 12. (added in version 2.6.12 β)-s numβ skip this many lines before starting to print values. if you don't specify it, no lines get skipped. zero skipping. straight in. π€-tβ Starbase (tab-separated) table output-vβ print more information about the process. she's chatty. she's sharing. π¬
π Web Page π
http://tdc-www.harvard.edu/software/wcstools/getcol.html
go look at it. the lore is there. π
π Author π
Jessica Mink, SAO (jmink@cfa.harvard.edu)
we stan. absolute legend behaviour. π«‘
okay real talk for one sec bestie: this page is from WCSTools, and the footer date on it is 8 November 2001. so yes, this manual is older than most of us and it's still out here doing its little column-extracting thing. respect the elders. πβ¨
now go extract some columns, you absolute icon. bye bestie!! πππ¦πΈπ
π¦ where this page comes from
- debian bookworm: wcstools 3.9.7-1 Β· GPL-2.0-only
- debian trixie: wcstools 3.9.7-1.1+b1 Β· GPL-2.0-only
- ubuntu jammy: wcstools 3.9.6-1 Β· GPL-2.0-only
- ubuntu noble: wcstools 3.9.7-1.1build1 Β· GPL-2.0-only
- ubuntu questing: wcstools 3.9.7-2
- ubuntu resolute: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- ubuntu stonking: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms