CmdID

CmdID / Commands

bzgrep

Find patterns in bzip2 compressed files using grep. 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 compressed file

bzgrep "search_pattern" path/to/fileIdentify

Recursively search files in a bzip2 compressed .tar archive for a pattern

bzgrep --recursive "search_pattern" path/to/tar_fileIdentify

Print 3 lines of Context around, Before, or After each match

bzgrep --context 3 "search_pattern" path/to/fileIdentify

Print file name and line number for each match

bzgrep --with-filename --line-number "search_pattern" path/to/fileIdentify

Search for lines matching a pattern, printing only the matched text

bzgrep --only-matching "search_pattern" path/to/fileIdentify

Search stdin for lines that do not match a pattern

cat path/to/bz_compressed_file | bzgrep --invert-match "search_pattern"Identify

Use extended regex (supports ?, +, {}, (), and |), in case-insensitive mode

bzgrep --extended-regexp --ignore-case "search_pattern" path/to/fileIdentify