Sorry; got it right in mine; let this out in yours. Here it is again correctly. for i in *.pdf; do pdftotext $i; done