CmdID

CmdID / Commands

xzgrep

Search files possibly compressed with xz, lzma, gzip, bzip2, lzop, or zstd using regex. 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 file

xzgrep "search_pattern" path/to/fileIdentify

Search for an exact string (disables regex)

xzgrep --fixed-strings "exact_string" path/to/fileIdentify

Search for a pattern in all files showing line numbers of matches

xzgrep --line-number "search_pattern" path/to/fileIdentify

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

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

Print file name and line number for each match with color output

xzgrep --with-filename --line-number --color=always "search_pattern" path/to/fileIdentify

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

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

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

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