我使用 Agent Ransack 来 grep 整个目录。但它在查看 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).