Sample Header Ad - 728x90

How to output files to another directory (Poppler - pdftotext)

4 votes
1 answer
3839 views
I have a directory with a very large number of PDFs that I am converting to *.txt documents with Poppler pdftotext. I have the following command that does the conversion of all the files. for f in *.pdf; do pdftotext $f; done The PDFs are on an external storage device without any additional space. How can I redirect the output to a different directory? That is, when each PDF is converted, it is written to another location rather than the same directory as the PDF.
Asked by Brian P (223 rep)
Oct 5, 2015, 02:27 PM
Last activity: Oct 7, 2015, 03:52 PM