Forrest logo
back to context overview

xzgrep

List of commands for xzgrep:

  • xzgrep:tldr:01e0e xzgrep: Search for a pattern in all files showing line numbers of matches.
    $ xzgrep --line-number "${search_pattern}" ${path-to-compressed-file}
    try on your machine
    explain this command
  • xzgrep:tldr:1d177 xzgrep: Search for lines matching a pattern, printing only the matched text.
    $ xzgrep --only-matching "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • xzgrep:tldr:42533 xzgrep: Search for an exact string (disables regular expressions).
    $ xzgrep --fixed-strings "${exact_string}" ${path-to-compressed-file}
    try on your machine
    explain this command
  • xzgrep:tldr:446d7 xzgrep: Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode.
    $ xzgrep --extended-regexp --ignore-case "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • xzgrep:tldr:88359 xzgrep: Print 3 lines of context around, before, or after each match.
    $ xzgrep --${select}=${3} "${search_pattern}" ${filename}
    try on your machine
    explain this command
  • xzgrep:tldr:d5df8 xzgrep: Search for a pattern within a file.
    $ xzgrep "${search_pattern}" ${path-to-compressed-file}
    try on your machine
    explain this command
  • xzgrep:tldr:fbbce xzgrep: Print file name and line number for each match with color output.
    $ xzgrep --with-filename --line-number --color=always "${search_pattern}" ${filename}
    try on your machine
    explain this command
back to context overview