Last active
April 28, 2023 08:55
-
-
Save ppdouble/49c91bb05c5d12905b7d343794b6d7cc to your computer and use it in GitHub Desktop.
find specific characters in jar files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the paths of jar files are listed in a text file named "files" | |
find $(cat files) -print -exec zipgrep "the-characters-needed-to-be-searched" '{}' \; | |
# search jar files recursively in path the-folder-path | |
find the-folder-path -name "*.jar" | xargs -I{} sh -c 'echo searching in "{}"; zipgrep "the-characters-needed-to-be-searched" {}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/10331025/how-to-search-for-a-string-in-jar-files