managing tabular data
selecting the first column of a DSV table
Note
- foo.bar represents an input file containing a delimiter-separated value-formatted table.
- baz represents the delimiter character used by the input file, for example
,
(comma) for a CSV file, or\t
(tab) for a TSV file.
Use cut -d$'baz' -f1 foo.bar
.
prior work
- The method of selecting a specific column was introduced to me by an answer on Stack Overflow by Tom Ron.
- The method of specifying a tab-character delimiter was introduced to me by an answer on Stack Exchange.
licensing
No rights reserved: CC0 1.0.