view bin/hdr.sh @ 189:1cc12a5a070b

compiles with content, but fails with EOF -- need blank lines?
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 24 Sep 2024 12:34:51 +0100
parents 9a1de2c4ffe3
children
line wrap: on
line source

#!/usr/bin/bash
echo $(date) $(hostname)
h=$(hostname)
hn=${h##*n}
if [ $hn -eq 0 ]
then seq --format="%03.0f" $1 $2
else seq --format="%03.0f" $3 $4
fi |\
parallel --will-cite -j 48 -N 1 bin/doHdr.sh ${hn} '{#}' '{}'
echo $(date) $(hostname) $?