laywerrobot/convertPdf2TxtIndirectory.sh

8 lines
118 B
Bash
Raw Normal View History

2020-08-27 21:55:39 +02:00
pdffiles=($1*.pdf)
for ((i=0;i<=${#pdffiles[@]};i++)); do
pdftotext "${pdffiles[i]}" "${pdffiles[i]}.txt"
done