LinuxCommandLibrary

tsv-filter

TLDR

Filter by column value

$ tsv-filter --eq [1]:[value] [file.tsv]
copy
Greater than
$ tsv-filter --gt [2]:[100] [file.tsv]
copy
String contains
$ tsv-filter --str-in-fld [1]:[pattern] [file.tsv]
copy
Multiple conditions
$ tsv-filter --ge [2]:[10] --le [2]:[100] [file.tsv]
copy
Invert filter
$ tsv-filter --invert --eq [1]:[value] [file.tsv]
copy

SYNOPSIS

tsv-filter [--eq col:val] [--gt col:val] [options] [file]

DESCRIPTION

tsv-filter filters TSV files. It selects rows.
Column-based filtering. Numeric and string.
Multiple conditions. AND logic.
Fast processing. D language speed.
Part of tsv-utils. Data processing suite.

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.

SEE ALSO

awk(1), cut(1), miller(1)

Copied to clipboard