Forrest logo
back to context overview

zegrep

List of commands for zegrep:

  • zegrep:tldr:1e432 zegrep: Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive).
    $ zegrep --ignore-case "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • zegrep:tldr:3b3a6 zegrep: Search for lines matching a pattern, printing only the matched text.
    $ zegrep --only-matching "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • zegrep:tldr:adb24 zegrep: Print file name and line number for each match.
    $ zegrep --with-filename --line-number "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • zegrep:tldr:b40a1 zegrep: Search for lines that do not match a pattern.
    $ zegrep --invert-match "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • zegrep:tldr:e24b7 zegrep: Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive).
    $ zegrep "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • zegrep:tldr:f16e7 zegrep: Recursively search files in a compressed file for a pattern.
    $ zegrep --recursive "${search_pattern}" ${filename}
    try on your machine
    explain this command
back to context overview