Forrest logo
back to context overview

bzgrep

List of commands for bzgrep:

  • bzgrep:tldr:03b72 bzgrep: Search for a pattern within a compressed file.
    $ bzgrep "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • bzgrep:tldr:6b089 bzgrep: Recursively search files in a bzip2 compressed tar archive for a pattern.
    $ bzgrep --recursive "${search_pattern}" ${path-to-tar-file}
    try on your machine
    explain this command
  • bzgrep:tldr:a9fbb bzgrep: Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode.
    $ bzgrep --extended-regexp --ignore-case "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • bzgrep:tldr:ab752 bzgrep: Search for lines matching a pattern, printing only the matched text.
    $ bzgrep --only-matching "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • bzgrep:tldr:c4838 bzgrep: Search `stdin` for lines that do not match a pattern.
    $ cat ${-path-to-bz-compressed-file} | bzgrep --invert-match "${search_pattern}"
    try on your machine
    explain this command
  • bzgrep:tldr:e7c3a bzgrep: Print 3 lines of context around, before, or after each match.
    $ bzgrep --${select}=${3} "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • bzgrep:tldr:fef8d bzgrep: Print file name and line number for each match.
    $ bzgrep --with-filename --line-number "${search_pattern}" ${filename}
    try on your machine
    explain this command
back to context overview