UbuntuでPDFファイルを最初にテキストに変換せずにgrepを使用して検索する方法はありますか?
ベストアンサー1
パッケージをインストールpdfgrep
した後、次のコマンドを使用します。
find /path -iname '*.pdf' -exec pdfgrep pattern {} +
———————
最も簡単な方法:
pdfgrep 'pattern' *.pdf
pdfgrep 'pattern' file.pdf
UbuntuでPDFファイルを最初にテキストに変換せずにgrepを使用して検索する方法はありますか?
パッケージをインストールpdfgrep
した後、次のコマンドを使用します。
find /path -iname '*.pdf' -exec pdfgrep pattern {} +
———————
最も簡単な方法:
pdfgrep 'pattern' *.pdf
pdfgrep 'pattern' file.pdf