How to search contents of multiple pdf files?

后端 未结 13 1152
误落风尘
误落风尘 2020-11-30 15:58

How could I search the contents of PDF files in a directory/subdirectory? I am looking for some command line tools. It seems that grep can\'t search PDF files.<

13条回答
  •  爱一瞬间的悲伤
    2020-11-30 16:35

    My actual version of pdfgrep (1.3.0) allows the following:

    pdfgrep -HiR 'pattern' /path
    

    When doing pdfgrep --help:

    • H: Print the file name for each match.
    • i: Ignore case distinctions.
    • R: Search directories recursively.

    It works well on my Ubuntu.

提交回复
热议问题