Forrest logo
back to the tsv-filter tool

tsv-filter:tldr:0e76d

tsv-filter: Print the lines where a specific column is [eq]ual/[n]on [e]qual/[l]ess [t]han/[l]ess than or [e]qual/[g]reater [t]han/[g]reater than or [e]qual to a given number.
$ tsv-filter --${select} ${column_number}:${number} ${path-to-tsv_file}
try on your machine

The command "tsv-filter" is a command-line tool used for filtering data within a TSV (Tab-Separated Values) file, which is a type of structured data file.

In this specific command, the following parameters are used:

  • "${select}" is a placeholder for a filter condition or expression. It specifies the condition that needs to be satisfied for a row to be included in the filtered result.

  • "${column_number}" is a placeholder for the column number within the TSV file that you want to apply the filter on. Columns in a TSV file are numbered starting from 1.

  • "${number}" is a placeholder for a specific number associated with the filter condition. This number is used in conjunction with the column to check if the condition is met.

  • "${path-to-tsv_file}" is a placeholder for the path to the actual TSV file on your system. It specifies the location of the file that needs to be filtered.

When you run this command with appropriate values filled in for the placeholders, it will filter the rows in the TSV file based on the specified condition. Only the rows that satisfy the condition will be included in the output result. The filtered result will be printed or stored in a new TSV file, depending on the options provided.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tsv-filter tool