xz*: update pages (#10192)

* xz*: update pages

* xz: make placeholders consistent
This commit is contained in:
Lena
2023-07-16 08:00:03 +02:00
committed by GitHub
parent d519410190
commit 48047a58c9
5 changed files with 24 additions and 27 deletions

View File

@@ -1,20 +1,20 @@
# xzgrep
> Search possibly compressed files with xz, lzma, gzip, bzip2, lzop, or zstd for regular expressions.
> Search files possibly compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd` using regular expressions.
> See also: `grep`.
> More information: <https://manned.org/xzgrep.1>.
> More information: <https://manned.org/xzgrep>.
- Search for a pattern within a file:
`xzgrep "{{search_pattern}}" {{path/to/compressed/file}}`
`xzgrep "{{search_pattern}}" {{path/to/file}}`
- Search for an exact string (disables regular expressions):
`xzgrep --fixed-strings "{{exact_string}}" {{path/to/compressed/file}}`
`xzgrep --fixed-strings "{{exact_string}}" {{path/to/file}}`
- Search for a pattern in all files showing line numbers of matches:
`xzgrep --line-number "{{search_pattern}}" {{path/to/compressed/file}}`
`xzgrep --line-number "{{search_pattern}}" {{path/to/file}}`
- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode: