tsv-filter
Filter TSV files by column values
TLDR
Filter by column value
SYNOPSIS
tsv-filter [--eq col:val] [--gt col:val] [options] [file]
DESCRIPTION
tsv-filter selects rows from tab-separated value files based on column conditions. It supports both numeric comparisons (equal, greater than, less than) and string operations (contains, exact match), allowing precise filtering of structured data.
Multiple conditions can be combined, and they are joined with AND logic by default — all conditions must match for a row to be included. The --invert flag reverses the selection to output non-matching rows instead.
Part of the tsv-utils suite, tsv-filter is written in D for high performance on large datasets. Column numbers are 1-based, and the -H flag enables header-aware processing.
PARAMETERS
--eq COL:VAL
Equal to value.--gt COL:VAL
Greater than.--lt COL:VAL
Less than.--str-in-fld COL:PAT
String contains.--invert
Invert match.-H
Has header.
CAVEATS
TSV format. Column numbers start at 1. Part of tsv-utils.
HISTORY
tsv-filter is part of tsv-utils, a collection of high-performance command-line tools for TSV files.
