view bin/cdbp.sh @ 389:2c04af3ca99a plus

implement part with 4-bit set
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 22 Jun 2026 12:33:40 +0100
parents 6082474a4e2e
children
line wrap: on
line source

#!/usr/bin/bash
# One cdb pipeline step, doing 1/6 of the work
# Usage: cdbp.sh i
# where i is the 0-origin index of a 6th, so e.g. cdbp.sh 2 will run 
#   test_cdbp.py ... ks_%d-%d.cdb lmh_%d-%d.cdb 34 50
i=$1
k1=$((i < 4 ?  (i * 17)  : (4 +(i * 16))))
k2=$((i < 4 ? k1 + 16 : k1 + 15))
#echo $(printf lmh_%d-%d.cdb $k1 $((k2 - 1))) 1>&2
#cat $(printf lmh_%d-%d.cdb $k1 $((k2 - 1))) > /dev/null
python3 -c 'import cdb_one;cdb_one.mainp()' lmh%d-%d.cdb $k1 $k2