Mercurial > hg > cc > cirrus_work
view bin/cdb_chain.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 # Chain together n steps of test_cdbp # Usage cdb_chain n # First step takes stdin, intermediate steps use FIFOs, last step goes to stdout export PYTHONPATH=~/lib/python/cc/lmh n=$1 mkfifo from0 cat | { cdbp.sh 0 > from0 ; } & seq 1 $((n - 2)) | while read i ; do mkfifo from$i cdbp.sh $i < from$((i - 1)) > from$i & rm $from$((i - 1)) done cdbp.sh $((n - 1)) < from$((n - 2)) rm from$((n - 2))