bzgrep, bzegrep, bzfgrep

search possibly bzip2 compressed files for a regular expression 

Command


SYNOPSIS

bzgrep [grep_options] [-e] pattern file...

bzegrep [egrep_options] [-e] pattern file...

bzfgrep [fgrep_options] [-e] pattern file...


DESCRIPTION

The bzgrep utility is used to invoke the grep utility on bzip2 compressed files. All options specified are passed directly to grep. If no file is specified, the standard input is decompressed if necessary and fed to grep. Otherwise, the given files are decompressed (if necessary) and fed to grep.

If bzgrep is invoked as bzegrep or bzfgrep, egrep or fgrep is used instead of grep.

Options

The bzgrep, bzegrep, and bzfgrep utilities accept and pass on the options used by the grep, bzegrep, and bzfgrep utilities, respectively.


DIAGNOSTICS

The bzgrep, bzegrep, and bzfgrep utilities preserve and return the exit status returned from grep, egrep, and fgrep, respectively.


NOTE

These utilities are provided as a KornShell executable scripts. MKS cannot be responsible for proper functionality of this code if you alter the bzgrep.sh, bzegrep.sh, and bzfgrep.sh files in any way.


PORTABILITY

Windows 2000. Windows XP. Windows Server 2003. Windows Vista.


AVAILABILITY

MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
bzdiff, bzip2, bzmore, grep

MKS Toolkit Backup and Tape Handling Solutions Guide


MKS Toolkit 9.2 Documentation Build 16.