diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-05 23:16:18 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-05 23:16:18 +0100 |
| commit | 9b8b63e3571d011b8c97d7b5e84d3856f72821c8 (patch) | |
| tree | 2e66108b3355d280576a2ca5bf92501dd567e7da | |
| parent | f616775cd805ef991bae5f3058bb9c7857896d5a (diff) | |
bustem
| -rw-r--r-- | pdf_dump_first_page.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pdf_dump_first_page.sh b/pdf_dump_first_page.sh index dd67c87d..d1610b50 100644 --- a/pdf_dump_first_page.sh +++ b/pdf_dump_first_page.sh @@ -3,6 +3,9 @@ for i in datasets/s2/pdf/*/*/*.pdf do OUTPUT="${i%.*}.txt" - pdf2txt.py -p 1 $i > $OUTPUT - echo $OUTPUT - done
\ No newline at end of file + if [ ! -e $OUTPUT ] + then + pdf2txt.py -p 1 $i > $OUTPUT + echo $OUTPUT + fi + done |
