Print the lines where a specific column is [eq]ual/[n]ot [e]qual/part of/not part of a given string

tsv-filter

  • Filter lines of a TSV file by running tests against individual fields.
    More information: <https://github.com/eBay/tsv-utils#tsv-filter>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

tsv-filter --str-{{eq|ne|in-fld|not-in-fld}} {{column_number}}:{{string}} {{path/to/tsv_file}}

click the source code to copy