blob: 333f747b2e3719667e8d0f803a469f8712840801 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|