Mercurial > hg > cc > cirrus_work
annotate bin/cdbp.sh @ 296:9608fe0628b0
better font
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Mon, 05 May 2025 20:39:16 +0100 |
| parents | 25d49e1f6c1d |
| children | 13414b0dfefb |
| rev | line source |
|---|---|
| 281 | 1 #!/usr/bin/bash |
| 2 # One cdb pipeline step, doing 1/17th of the work | |
| 3 # Usage: cdbp.sh i | |
| 4 # where i is the 0-origin index of a 17th, so e.g. cdbp.sh 2 will run | |
| 5 # test_cdbp.py ... ks_%d-%d.cdb 2 3 12 18 | |
| 6 i=$1 | |
| 7 k1=$((i * 6)) | |
| 8 k2=$(((i + 1) * 6)) | |
| 9 k2=$((k2 > 100 ? 100 : k2)) | |
| 10 echo wc -l $(printf ks_%d-%d.cdb $k1 $((k2 - 1))) 1>&2 | |
| 11 wc -l $(printf ks_%d-%d.cdb $k1 $((k2 - 1))) 1>&2 | |
| 12 python3 -c 'import test_cdbp;test_cdbp.mainp()' ks_%d-%d.cdb $i $((i + 1)) $k1 $k2 | |
| 13 |
