JAR ファイルを解凍してから検索するファイル コンテンツ検索ツールはありますか?

JAR ファイルを解凍してから検索するファイル コンテンツ検索ツールはありますか?

ディレクトリ全体を grep するのに Agent Ransack を使用しています。しかし、JAR ファイルを調査する前に解凍しません。それを実行するツールはありますか?

答え1

以下をお試しくださいunzip:

unzip -p your_file.jar | grep "your_search"

ページからman:

-p     extract files to pipe (stdout).  Nothing but the file data is sent to
       stdout, and the files are always extracted in binary format, just as
       they are stored (no conversions).

関連情報