annotate bin/ex4_1.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 |
615efac7fc09 |
| children |
|
| rev |
line source |
|
385
|
1 #!/usr/bin/bash
|
|
|
2 # Usage: ex4_1.sh j n
|
|
|
3 # Process the jth group of cdx files taken n at a time
|
|
|
4 # with 10 parallel threads at a time
|
|
|
5 j=$1
|
|
|
6 n=$2
|
|
|
7 c_s=$((n * j))
|
|
|
8 c_e=$(( ( ( n * (j + 1) ) - 1 ) ))
|
|
|
9 echo ex4_1 passed j=$j n=$n, processing "[$c_s,$c_e]"
|
|
|
10 cd /work/dc007/dc007/hst/results/CC-MAIN-2025-33/warc_lmhx/idx
|
|
|
11 seq --format "%03g" $c_s $c_e | parallel -j 10 \
|
|
|
12 /work/dc007/dc007/hst/bin/ex4_2.sh '{}' | uniq_merge.py
|
|
|
13
|
|
|
14
|