search pdf with grep and pdftotext Posted on December 1, 2015 by ForDoDone # sudo apt-get install poppler-utils -y && pdftotext testfile.pdf - | grep 'match' This is a matching line #