LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lzgrep

searches for patterns in lzip-compressed files

TLDR

Search in lzip-compressed file
$ lzgrep [pattern] [file.lz]
copy
Case-insensitive search
$ lzgrep -i [pattern] [file.lz]
copy
Show line numbers
$ lzgrep -n [pattern] [file.lz]
copy
Search multiple files
$ lzgrep [pattern] [*.lz]
copy
Extended regex
$ lzegrep [pattern] [file.lz]
copy

SYNOPSIS

lzgrep [options] pattern [file...]

DESCRIPTION

lzgrep searches for patterns in lzip-compressed files. Automatically decompresses before searching. Passes options through to grep. Use lzegrep for extended regex or lzfgrep for fixed strings.

PARAMETERS

-i

Case-insensitive search.
-n
Show line numbers.
-l
Show only filenames.
-c
Show match counts.
-v
Invert match.
All grep options are supported.

INSTALL

sudo dnf install xz
copy
sudo pacman -S xz
copy
sudo apk add xz
copy
sudo zypper install xz
copy
brew install xz
copy
nix profile install nixpkgs#xz
copy

SEE ALSO

lzip(1), grep(1), zgrep(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid