BZGREP(1)

πŸ“¦
version 1.0.8 Β· 2 versions
  • 1.0.8 Β· alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 15.1 Β· freebsd 14.5, freebsd 15.1
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– BZGREP(1) πŸ’–

General Commands Manual

✨ NAME ✨

okay so the name section is giving: bzgrep, bzfgrep, and bzegrep πŸ¦‹. All three search possibly bzip2 compressed files for a regular expression. Iconic, right? πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

bzgrep [ grep_options ] [ -e ] pattern filename...
bzegrep [ egrep_options ] [ -e ] pattern filename...
bzfgrep [ fgrep_options ] [ -e ] pattern filename...

🌸 DESCRIPTION 🌸

bestie, bzgrep is basically a little helper that invokes grep on bzip2-compressed files for you 🧚. Every option you type gets passed straight through to grep, no cap. If you don't give it any file, it decompresses standard input if it needs to and feeds that to grep. If you do give it files, it uncompresses them if necessary and feeds them to grep too. So smooth ✨.

If you invoke it as bzegrep or bzfgrep, it swaps in egrep or fgrep instead of grep. Main character energy πŸ‘‘.

Also, if the GREP environment variable is set, bzgrep uses whatever's in there as the grep program it runs. Here's how you'd do it:

    for sh:  GREP=fgrep  bzgrep string files
    for csh: (setenv GREP fgrep; bzgrep string files)

πŸ’œ AUTHOR πŸ’œ

Charles Levert (charles@comm.polymtl.ca) wrote the original 🫢. Philippe Troin <phil@fifi.org> adapted it to bzip2 for Debian GNU/Linux, and we love a team effort 🌈.

πŸ¦‹ SEE ALSO πŸ¦‹

grep(1), egrep(1), fgrep(1), bzdiff(1), bzmore(1), bzless(1), bzip2(1) ✨


That's a wrap, bestie πŸ“ this was BZGREP(1), General Commands Manual, and you're literally going to ace it πŸ”₯πŸ’