content/posts/2021-05.md: Fix csvgrep command

This commit is contained in:
Alan Orth 2021-07-06 17:03:55 +03:00
parent c00e6395d8
commit 1a9194e460
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -401,7 +401,7 @@ localhost/dspace63= > \COPY (SELECT DISTINCT text_value, count(*) FROM metadatav
COPY 5000
$ csvcut -c 1 /tmp/2021-05-20-agrovoc.csv| sed 1d > /tmp/2021-05-20-agrovoc.txt
$ ./ilri/agrovoc-lookup.py -i /tmp/2021-05-20-agrovoc.txt -o /tmp/2021-05-20-agrovoc-results.csv
$ csvgrep -c "number of matches" -m 0 /tmp/2021-05-20-agrovoc-results.csv > /tmp/2021-05-20-agrovoc-rejected.csv
$ csvgrep -c "number of matches" -r '^0$' /tmp/2021-05-20-agrovoc-results.csv > /tmp/2021-05-20-agrovoc-rejected.csv
```
- Meeting with Medha and Pythagoras about the FAIR Workflow tool