view bin/doPlinks.sh @ 4:462179da7dc2

try harder not to write empty links files
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 19 Feb 2020 10:39:05 +0000
parents a4b0359456bc
children 0f494c76a887
line wrap: on
line source

#!/usr/bin/bash
mkdir -p /dev/shm/x
plinks.py $1
# while read f
# do
#     if plinks.py $f > /dev/shm/x/links_${me}_${mine} 2>/dev/null
#     then
# 	((mine+=1))
#     else
# 	echo $f >> /dev/shm/x/badpdfs_$me
# 	rm -f /dev/shm/x/links_${me}_${mine}
#     fi
# done
rsync -a /dev/shm/x/ links