dipl/documents/mst1/test.sh

14 lines
309 B
Bash
Raw Permalink Normal View History

#!/bin/sh
for f in *.pdf; do
echo "########################################"
echo "Tesing $f..."
echo "########################################" >> ./logfile
if pdfinfo "$f" >> ./logfile; then
echo "$f is correct!"
else
echo "$f is broken!"
fi
echo "########################################"
done