Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsv-filter field lists #259

Merged
merged 2 commits into from
Feb 15, 2020

Conversation

jondegenhardt
Copy link
Contributor

This PR adds field list support to tsv-filter. This allows multiple fields to be specified using the same filter. Examples:

$ # Ensure that fields 1-10 are not blank
$ tsv-filter --not-blank 1-10

$ # Ensure that fields 1, 3, and 5 are not zero.
$ tsv-filter --ne 1,3,5:0

$ # Ensure that fields 1-30 are not blank and not "NA"
tsv-filter --not-blank 1-30 --str-ne 1-30:'NA'

Field list support is already available in most of the other tools in the tsv-utils toolset.

@jondegenhardt jondegenhardt merged commit a9d0dd2 into eBay:master Feb 15, 2020
@jondegenhardt jondegenhardt deleted the tsv-filter-field-lists branch February 15, 2020 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant