PDFファイルに対してgrep操作を実行するには?

PDFファイルに対してgrep操作を実行するには?

UbuntuでPDFファイルを最初にテキストに変換せずにgrepを使用して検索する方法はありますか?

ベストアンサー1

パッケージをインストールpdfgrepした後、次のコマンドを使用します。

find /path -iname '*.pdf' -exec pdfgrep pattern {} +

———————

最も簡単な方法:

pdfgrep 'pattern' *.pdf
pdfgrep 'pattern' file.pdf 

おすすめ記事