TSVSELECT(1) BSD General Commands Manual TSVSELECT(1)
NAME
tsvselect -- Select a line from a TSV file
SYNOPSIS
tsvselect tsvfile.tsv [rowno | colno text]
DESCRIPTION
Output a line (row) from a TSV file, with each column being output on a
separate line, and preceded by a line containing a hashmark ( # ) fol-
lowed by space and "column title";
tsvselect tsvfile.tsv rowno
select the line (row) to be output by its row num-
ber (1-based)
tsvselect tsvfile.tsv colno text
select the line (row) to be output by searching
the column with index colno (1-based) for text.
For example, for the TSV file students.tsv:
ID Name Age
1 John 25
2 Peter 33
`tsvselect students.tsv 3' will output:
# ID
2
# Name
Peter
# Age
33
AUTHORS
Strahinya Radich <contact@strahinja.org>, 2023
BSD November 11, 2023 BSD