annotate bin/_atest3.sh @ 396:10813bab9072
plus tip
added test 9 for wat that pretty-prints json content
| author |
Henry S. Thompson <ht@inf.ed.ac.uk> |
| date |
Tue, 30 Jun 2026 16:50:56 +0100 |
| parents |
a00e888e4df3 |
| children |
|
| rev |
line source |
|
377
|
1 #!/usr/bin/bash
|
|
|
2 # Usage: _atest3.sh j n
|
|
379
|
3 # Process the jth group of cdx files taken n at a time
|
|
|
4 # with 10 parallel threads at a time
|
|
377
|
5 j=$1
|
|
|
6 n=$2
|
|
|
7 h_s=$((n * j))
|
|
|
8 h_e=$(( ( ( n * (j + 1) ) - 1 ) ))
|
|
|
9 echo _a passed j=$j n=$n, processing "[$h_s,$h_e]"
|
|
|
10 #seq --format "%03g" $h_s $h_e | parallel -j 10 echo '$(date)' cdx-00'{}.gz' ' {#} \| sus' #| uniq_merge.py
|
|
|
11 cd /work/dc007/dc007/hst/results/CC-MAIN-2025-33/warc_lmhx/idx
|
|
|
12 seq --format "%03g" $h_s $h_e | parallel -j 10 'uz cdx-00{}.gz | /work/dc007/dc007/shared/bin/cdx2tsv.sh languages | egrep -v "NA|," | sus' | uniq_merge.py
|