i want to apply this command
pdftotext article.pdf - | grep DOI
to all the pdf's in a directory and save each line of output to a text file.
i.e. i want to collect each line containing "DOI" from every pdf in a text file.
I am unable to understand bash scripting enough to write a for loop for this.
Some help will be highly appreciated.