nnnotes/parse/parse-skim.sh

23 lines
309 B
Bash
Raw Normal View History

2014-08-25 12:54:27 +02:00
#!/bin/bash
for i in *.pdf; do
f=$i
done
2014-08-25 19:23:13 +02:00
if [[ -d '$f' ]]; then
echo "$f No pdf file in directory... Aborting.";
2014-08-25 12:54:27 +02:00
exit;
fi
2014-08-31 22:44:15 +02:00
filename="${f%.*}".txt
2014-08-25 12:54:27 +02:00
skimnotes get -format txt $f
2014-08-31 22:44:15 +02:00
if [[ ! -f $filename ]]; then
2014-08-25 19:23:13 +02:00
echo "No skim notes in pdf $f. Aborting.";
exit;
fi
2014-08-31 22:44:15 +02:00
parse-skim.py < $filename
2014-08-25 12:54:27 +02:00
2014-09-11 16:01:59 +02:00
rm $filename