pdfgrep 出力をファイルに送信する際に問題があります。

pdfgrep 出力をファイルに送信する際に問題があります。

複数のPDFファイルからパターンを検索するためにpdfgrepを使用しようとしています。私が使用するコマンドは

pdfgrep --color always <pattern> */*.pdf > outputFile

コマンドは多くの出力を生成するので、出力をファイルとして指定しました。その後、入力すると、cat outputFile次のように長い行に問題が発生します。つまり、行に間隔があり、一部の文字と単語がありません。

ARE249/LewandowskyEtAl_PsychSci_2016.pdf:referred to as worldview or cultural cognition—is a major                          because if an overwhelming scientific consensus cannot
ARE249/LewandowskyObenhauerGignac_PsychSci_2016_annot.pdf:referred to as worldview or cultural cognition—is a major                          because if an overwhelming scientific consensus cannot        KIRIVEXIH
ARE249/Lewandowsky_Oberauer_MotivatedRejectionofScience_2016.pdf:apparent than with climate science. The overwhelming                                and Slovic (2013). The tables in panel (a) of Figure 1
ARE249/Lewandowsky_Oberauer_MotivatedRejectionofScience_2016.pdf:    In summary, the rejection of specific scientific evi-                          in panel (b) of Figure 1. Liberals overwhelmingly arrived
ARE249/Lewandowsky_Oberauer_MotivatedRejectionofScience_2016.pdf:to decrease as a result of gun control, whereas they failed                          are motivated to reject an overwhelming scientific con-
ARE249/Mans

bridge_SolnsToPolarization_Ch2_annot.pdf:

関連する問題は出力ファイルを見ることです。これをにパイプするとmore出力は大丈夫に見えますが、出力から上下にスクロールできたらと思います。しかし、パイプすると、次lessのようなESCがたくさん発生します。

公衆衛生等級のKone.この尺度のサンプル範囲スコアはESC [01; 3

もう一つの方法はエディタを介してoutputFileを見ることですが、どちらのvi場合emacsless

誰もがこれらの問題に対する良い解決策を持っていますか?ありがとうございます!

ベストアンサー1

おすすめ記事