[osotolongo@brick03 mri_face]$ for x in reports/*.pdf ; do pdftotext ${x}; done [osotolongo@brick03 mri_face]$ ls reports/ 20081210.pdf 20140947.pdf 20151338.pdf 20201297.pdf 20211384.pdf 20211455.pdf 20211475.pdf 20211480.pdf 20211505.pdf 20211523.pdf 20211524.pdf 20211527.pdf 20211611.pdf 20081210.txt 20140947.txt 20151338.txt 20201297.txt 20211384.txt 20211455.txt 20211475.txt 20211480.txt 20211505.txt 20211523.txt 20211524.txt 20211527.txt 20211611.txt