I’ve written a script to search through one folder to let me know what PDF has fonts (quick way to know if it’s been OCR’d unless anyone knows of a better one)
What I can’t do on my script is for it to search through all the folders within the main DIR?
Any thoughts?
!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
PDFDIR=/home/user/Temp/Docs/*.pdf
for f in $PDFDIR
do
echo "******************PDF***********************"
pdffonts $f
echo "$f"
echo "******************PDf***********************"
done > output.txt
# restore $IFS
IFS=$SAVEIFS
change this:
to this: