helpText
immutable
auto helpText =
q"EOS
Synopsis: tsv-select [options] [file...]
tsv-select reads files or standard input and writes selected fields to
standard output. Fields are written in the order listed. This is similar
to Unix 'cut', but with the ability to reorder fields.
Fields numbers start with one. They are comma separated and ranges can be
used. Fields can be repeated, and fields not included in the '--f|fields'
option can be selected as a group using '--r|rest'. Fields can be dropped
using '--e|exclude'. Multiple files with header lines can be managed with
'--H|header', which retains the header of the first file only.
Examples:
# Output fields 2 and 1, in that order
tsv-select -f 2,1 data.tsv
# Drop the first field, keep everything else.
tsv-select --exclude 1 file.tsv
# Move the first field to the end
tsv-select -f 1 --rest first data.tsv
# Multiple files with header lines. Keep only one header.
tsv-select data*.tsv -H --fields 1,2,4-7,14
Use '--help-verbose' for detailed information.
Options:
EOS";
tsv_utils tsv_select
enumsfunctionsstatic variablesstructsvariables