CmdID

CmdID / Commands

tsv-filter

Filter lines of a TSV file by running tests against individual fields. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Print the lines where a specific column is numerically equal to a given number

tsv-filter -H --eq field_name:number path/to/tsv_fileIdentify

Print the lines where a specific column is equal/non equal/less than/less than or equal/greater than/greater than or equal to a given number

tsv-filter --eq column_number:number path/to/tsv_fileIdentify

Print the lines where a specific column is equal/not equal/part of/not part of a given string

tsv-filter --str-eq column_number:string path/to/tsv_fileIdentify

Filter for non-empty fields

tsv-filter --not-empty column_number path/to/tsv_fileIdentify

Print the lines where a specific column is empty

tsv-filter --invert --not-empty column_number path/to/tsv_fileIdentify

Print the lines that satisfy two conditions

tsv-filter --eq column_number1:number --str-eq column_number2:string path/to/tsv_fileIdentify

Print the lines that match at least one condition

tsv-filter --or --eq column_number1:number --str-eq column_number2:string path/to/tsv_fileIdentify

Count matching lines, interpreting first line as a Header

tsv-filter --count -H --eq field_name:number path/to/tsv_fileIdentify