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

frequency: add filter options #750

Merged
merged 1 commit into from
Feb 1, 2024
Merged

frequency: add filter options #750

merged 1 commit into from
Feb 1, 2024

Conversation

nwagner84
Copy link
Member

@nwagner84 nwagner84 commented Feb 1, 2024

This PR add --where, --or, and --not options to the frequency command. Now, the following two commands are equivalent:

$ pica filter "[email protected] =^ 'Tp'" GND.dat.gz | pica frequency "[email protected]"
Tp3,3673547
Tp1,1252776
Tp6,1064090
Tp4,120998
Tp2,31413
Tp5,6122
Tp1e,1117
Tpz,611
Tp7,4
$ pica frequency "[email protected]" --where "[email protected] =^ 'Tp'" GND.dat.gz
Tp3,3673547
Tp1,1252776
Tp6,1064090
Tp4,120998
Tp2,31413
Tp5,6122
Tp1e,1117
Tpz,611
Tp7,4

@nwagner84 nwagner84 added the C-enhancement Category: enhancement label Feb 1, 2024
@nwagner84 nwagner84 self-assigned this Feb 1, 2024
@nwagner84 nwagner84 merged commit f603116 into main Feb 1, 2024
24 checks passed
@nwagner84 nwagner84 deleted the freq-where branch February 1, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant