comparison bin/extract.sh @ 30:1e479e3ea9c4

better quoting
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 19 Mar 2020 13:13:02 +0000
parents a95a1b31f5e9
children
comparison
equal deleted inserted replaced
29:a95a1b31f5e9 30:1e479e3ea9c4
3 # First line thereof gives CC identifier 3 # First line thereof gives CC identifier
4 echo $(date) $(hostname) 4 echo $(date) $(hostname)
5 h=$(hostname) 5 h=$(hostname)
6 hn=${h##*n} 6 hn=${h##*n}
7 head -1 extract_${hn}.txt |\ 7 head -1 extract_${hn}.txt |\
8 read cc \; \ 8 { read cc ; \
9 tail -n +2 extract_${hn}.txt |\ 9 tail -n +2 extract_${hn}.txt |\
10 parallel --will-cite -j 4 -N 1 \$HOME/bin/doExtract.sh "$cc" '{#}' '{}' 10 parallel --joblog topjob.log --will-cite -j 4 -N 1 \$HOME/bin/doExtract.sh "$cc" '{#}' '{}' ; }
11 echo $(date) $(hostname) $? 11 echo $(date) $(hostname) $?