JAR 파일을 조사하기 전에 압축을 푸는 파일 콘텐츠 검색 도구가 있습니까?

JAR 파일을 조사하기 전에 압축을 푸는 파일 콘텐츠 검색 도구가 있습니까?

저는 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).

관련 정보