view bin/plinks.sh @ 6:0f494c76a887

refactor to address tarred-up pdfs
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 23 Feb 2020 16:48:34 +0000
parents 65a56c0d1c1f
children 25ca3505b4d7
line wrap: on
line source

#!/usr/bin/bash
mkdir -p $TMPDIR
echo $(date) $(hostname)
h=$(hostname)
hn=${h##*n}
if [ $hn -eq 0 ]; then echo {001..002}; else echo {003..004}; fi |\
tr ' ' '\012' |parallel --will-cite -j 71 -N 1 doPlinks.sh ${hn} '{#}' '{}'
echo $(date) $(hostname)