Forrest logo
back to the tsv-filter tool

tsv-filter:tldr:465b7

tsv-filter: Print the lines that match at least one condition.
$ tsv-filter --or --eq ${column_number1}:${number} --str-eq ${column_number2}:${string} ${path-to-tsv_file}
try on your machine

This command is using the "tsv-filter" tool to filter rows in a TSV (Tab-Separated Values) file based on certain conditions. Here is a breakdown of the command:

  • "tsv-filter": This is the name of the tool or command being executed.
  • "--or": This flag specifies that the conditions following it should be treated as logical OR conditions.
  • "--eq ${column_number1}:${number}": This condition checks if the value in the column specified by ${column_number1} (a placeholder for the actual column number) is equal to the value ${number} (another placeholder for an actual number).
  • "--str-eq ${column_number2}:${string}": This condition checks if the value in the column specified by ${column_number2} is equal to the ${string}, which is a placeholder for an actual string.
  • "${path-to-tsv_file}": This is the path to the TSV file that needs to be filtered.

In summary, this command will filter rows in the TSV file specified by the ${path-to-tsv_file} parameter. It will include rows that meet either of the two conditions: the value in the column specified by ${column_number1} is equal to ${number}, or the value in the column specified by ${column_number2} is equal to ${string}.

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