Hi, I am trying to write this script to convert tiff to PDF's. How do I tell the script to go(loop) into each folder under Incoming and perform the tiff2pdf.
For example under /mnt/fs/Incoming there are few folder and in each folder there are .tiff files to convert. Thanks for any help!
Code:
for f in /mnt/fs/Incoming/*.tif; do tiff2pdf -o "${f%.tif}".pdf "$f"; done