Mercurial > hg > cc > cirrus_work
view bin/cdbp.sh @ 285:0ec17b2aab72 default tip
fix GMT fix,
%-encode utf8-bytes (which probably will open the door to all the other hacks in sort-date :-(
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sat, 08 Mar 2025 22:31:14 +0000 |
parents | 25d49e1f6c1d |
children |
line wrap: on
line source
#!/usr/bin/bash # One cdb pipeline step, doing 1/17th of the work # Usage: cdbp.sh i # where i is the 0-origin index of a 17th, so e.g. cdbp.sh 2 will run # test_cdbp.py ... ks_%d-%d.cdb 2 3 12 18 i=$1 k1=$((i * 6)) k2=$(((i + 1) * 6)) k2=$((k2 > 100 ? 100 : k2)) echo wc -l $(printf ks_%d-%d.cdb $k1 $((k2 - 1))) 1>&2 wc -l $(printf ks_%d-%d.cdb $k1 $((k2 - 1))) 1>&2 python3 -c 'import test_cdbp;test_cdbp.mainp()' ks_%d-%d.cdb $i $((i + 1)) $k1 $k2