diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-04 17:38:01 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-04 17:38:01 -0700 |
commit | 84c38d29fc4c7d0dd2e61a5ee9d57ee0a87a61e3 (patch) | |
tree | b2ce9e75ed06d38216aae039ec12c76e8aaea838 /extra/checks/check_issnl.sh | |
parent | 4fdb056debb07beb36d9bfd0dd358cd398a61a6e (diff) | |
download | fatcat-84c38d29fc4c7d0dd2e61a5ee9d57ee0a87a61e3.tar.gz fatcat-84c38d29fc4c7d0dd2e61a5ee9d57ee0a87a61e3.zip |
QA checks (for hash, extid duplication)
Diffstat (limited to 'extra/checks/check_issnl.sh')
-rwxr-xr-x | extra/checks/check_issnl.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/checks/check_issnl.sh b/extra/checks/check_issnl.sh new file mode 100755 index 00000000..333f747b --- /dev/null +++ b/extra/checks/check_issnl.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e -u -o pipefail + +export LC_ALL=C + +CONTAINER_DUMP=$1 + +zcat $CONTAINER_DUMP \ + | jq '[.issnl, .ident] | @tsv' -r \ + | sort -S 4G \ + | uniq -d -w 9 \ + > issnl_ident.dupes.tsv + +wc -l issnl_ident.dupes.tsv >> counts.txt |