ZipGrep

Utility for searching and listing files in zip archives.

<

Documentation

Utility for searching and listing files in zip archives. This saves a lot of trouble and space extracting, especially in the case of nesting (such as for example in .ear, .war) files, where extraction would otherwise be necessary, even to list the contents, let alone to search for text.

This tool is available as a downloadable JAR file, and runs from the command line.  To install, just click on the download link above and save the file to your computer. The documentation below has usage information, as well as some examples.

System Requirements:
 

  • Java 7+
 
Usage:
 

java -jar zipgrep.jar [-h | --help] [-list] [-debug] [-no-recurse] file [pattern]

Open in new window


Positional Arguments:

file                   Archive to search

Open in new window


Optional Arguments:

-h, --help             show this help message and exit
-list                  Do we want to just list the archive? (default false)
-debug                 Will show debug trace (default false) and processors (with help option)
-no-recurse            Prevent recursion of nested archives? (recursion happens by default)
pattern                Search (regex) pattern - if searching required

Open in new window


Examples:

  • List entries in foo.zip recursively:
java -jar zipgrep.jar -list foo.zip

Open in new window


  • Search foo.zip recursively and find string 'findme' in any of its entries:
java -jar zipgrep.jar foo.zip findme

Open in new window


  • Show help options, archive extensions and entry processors in use:
java -jar zipgrep.jar -h -debug

Open in new window


Example Run:
zipgrep.png

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month

Enjoyed this tool?

Join our community for more IT solutions.

Join Now
Your Tool Here

Have a request or an idea for a tool you would like to see here?

More Tools

  • Useful if you need to troubleshoot a network, or find the origin of an IP address. Gives you information about an IP address or hostname, such as owner information and geographical origin.
  • An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.
  • Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
  • A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.
  • Lets you know if our servers can access a website.  Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
  • Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.
  • The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.