I need to find LaTeX Generated PDF files because I want to find those files made by me. I think find could possibly work here.
OS X El-Capitan
I run Ulrich's proposal find BitTorrentSync/ -exec pdfinfo {} + |grep pdftex but I get
find: pdfinfo: No such file or directory
find: pdfinfo: No such file or directory
...
where the problem is that I do not have pdfinfo yet in my system.
L.Levrel's proposal. I run gfind -name '*.pdf' | gxargs ggrep -al '^/Producer (pdfTeX' where I use GNU's products but I get in OS X El-Capitan
gxargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
ggrep: cademic: invalid context length argument
Ubuntu 16.04
I cannot run Ulrich's proposal because of the bug here.
L.Levrel's first proposal does not work but it works with xargs -0
find -name '*.pdf' | xargs -0 grep -al '^/Producer (pdfTeX'
How can you find LaTeX generated PDF files?
pdfinfowill include the creator (software), depending on your workflow that would include strings like "pdftex" or "dvipdf" or "dvips". So, vaguely, firstfindall pdfs,-execpdfinfoon each and inspect its output withgrep? – Ulrich Schwarz May 21 '16 at 12:57