tsv-filter:tldr:40387
The command "tsv-filter" is a command-line tool used to filter TSV (Tab-separated values) files based on specific conditions. TSV files are text files where columns are separated by tabs.
Here is the breakdown of the command:
-
"tsv-filter" is the command itself.
-
"--eq" specifies that we want to filter based on equality.
-
"${column_number1}" represents the column number in the TSV file that we are filtering. You need to replace it with the actual column number you want to filter on.
-
"${number}" represents the specific value in the column that we are looking for. It can be replaced with the specific number you want to filter on.
-
"--str-eq" specifies that we want to filter based on string equality.
-
"${column_number2}" represents the column number in the TSV file that we are filtering. You need to replace it with the actual column number you want to filter on.
-
"${string}" represents the specific string value in the column that we are looking for. It can be replaced with the specific string you want to filter on.
-
"${path-to-tsv_file}" represents the path to the TSV file you want to filter. You need to replace it with the actual file path.
In summary, this command filters a TSV file, keeping only the rows where the value in a specific column (specified by column_number1) matches the given number (specified by number) and the value in another specific column (specified by column_number2) matches the given string (specified by string). The resulting filtered TSV file will be outputted.