CmdID

CmdID / Commands

zipgrep

Find patterns in files in a Zip archive using extended regex (supports ?, +, {}, (), and |). tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Search for a pattern within a Zip archive

zipgrep "search_pattern" path/to/file.zipIdentify

Print file name and line number for each match

zipgrep --with-filename --line-number "search_pattern" path/to/file.zipIdentify

Search for lines that do not match a pattern

zipgrep --invert-match "search_pattern" path/to/file.zipIdentify

Specify files inside a Zip archive from search

zipgrep "search_pattern" path/to/file.zip file/to/search1 file/to/search2Identify

Exclude files inside a Zip archive from search

zipgrep "search_pattern" path/to/file.zip --line-regexp file/to/exclude1 file/to/exclude2Identify