view bin/extract.sh @ 28:70c04a452599

fix missing use of $t
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 18 Mar 2020 21:52:06 +0000
parents 7a2bc060230d
children a95a1b31f5e9
line wrap: on
line source

#!/usr/bin/bash
# Launch parallel tasks, one per segment from extract_?.txt
echo $(date) $(hostname)
h=$(hostname)
hn=${h##*n}
head -1 extract_${hn}.txt |\
 {  read cc
    tail -n +2 extract_${hn}.txt |\
    parallel --will-cite  -j 4 -N 1 $HOME/bin/doExtract.sh "$cc" '{#}' '{}'
 }
echo $(date) $(hostname) $?