Mercurial > hg > cc > cirrus_home
comparison bin/doPlinks.sh @ 0:65a56c0d1c1f
bolting the barn door...
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 18 Feb 2020 13:15:05 +0000 |
parents | |
children | a4b0359456bc |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:65a56c0d1c1f |
---|---|
1 #!/usr/bin/bash | |
2 me=$1 | |
3 mine=0 | |
4 mkdir /dev/shm/x | |
5 while read f | |
6 do | |
7 if plinks.py $f > /dev/shm/x/links_${me}_${mine} 2>/dev/null | |
8 then | |
9 ((mine+=1)) | |
10 else | |
11 echo $f >> /dev/shm/x/badpdfs_$me | |
12 rm -f /dev/shm/x/links_${me}_${mine} | |
13 fi | |
14 done | |
15 rsync -a /dev/shm/x/ links |