tsvselect.1.in (932B)
1 .Dd %DATE% 2 .Dt TSVSELECT 1 3 .Os 4 .Sh NAME 5 .Nm tsvselect 6 .Nd Select a line from a TSV file 7 .Sh SYNOPSIS 8 .Nm 9 .Ar tsvfile.tsv 10 .Op Ar rowno | Ar colno Ar text 11 .Sh DESCRIPTION 12 Output a line (row) from a TSV file, with each column being output on a separate 13 line, and preceded by a line containing a hashmark ( 14 .Li # 15 ) followed by space and 16 .Dq column title ; 17 .Bl -tag -width ".Nm Ar rowno" -offset indent 18 .It Ar tsvfile.tsv Ar rowno 19 select the line (row) to be output by its row number (1\-based) 20 . 21 .It Ar tsvfile.tsv Ar colno Ar text 22 select the line (row) to be output by searching the column with index 23 .Ar colno 24 (1\-based) for 25 .Ar text . 26 .El 27 . 28 For example, for the TSV file 29 .Pa students.tsv : 30 .Bd -literal -offset indent 31 ID Name Age 32 1 John 25 33 2 Peter 33 34 .Ed 35 .Pp 36 .Ql tsvselect students.tsv 3 37 will output: 38 .Bd -literal -offset indent 39 # ID 40 2 41 # Name 42 Peter 43 # Age 44 33 45 .Ed 46 . 47 .Sh AUTHORS 48 .An Strahinya Radich Aq Mt sr@strahinja.org , 49 2023\-2026