zipgrep
Find patterns in files in a Zip archive using extended regex (supports ?, +, {}, (), and |). tldr-pages
On several platforms
Several platforms
Search for a pattern within a Zip archive
zipgrep "search_pattern" path/to/file.zipIdentifyPrint file name and line number for each match
zipgrep --with-filename --line-number "search_pattern" path/to/file.zipIdentifySearch for lines that do not match a pattern
zipgrep --invert-match "search_pattern" path/to/file.zipIdentifySpecify files inside a Zip archive from search
zipgrep "search_pattern" path/to/file.zip file/to/search1 file/to/search2IdentifyExclude files inside a Zip archive from search
zipgrep "search_pattern" path/to/file.zip --line-regexp file/to/exclude1 file/to/exclude2Identify