Script day: grep in jar (or zip) files
Here is another script I wrote for work and I thought it will be interesting enough to share:
Say you want to check which JAR files (or ZIP files for that matter, as Java ARchive files are just ZIP files with a different extension) contain files that contain some text. grep
is the obvious answer, but how to grep files in JARs?