grep through bzip2 files usage: bzgrep [grep_options] pattern [files]
grep through bzip2 files usage: bzgrep [grep_options] pattern [files]
BZGREP(1) BZGREP(1)
名前
bzgrep, bzfgrep, bzegrep - bzip2 圧縮されている可能性のあるファイルで、
正規表現の検索をする
書式
bzgrep [ grep_options ] [ -e ] pattern filename...
bzegrep [ egrep_options ] [ -e ] pattern filename...
bzfgrep [ fgrep_options ] [ -e ] pattern filename...
説明
bzgrep は、bzip2 で圧縮されたファイルに対して grep を呼び出すために使わ
れ る。指定されたすべてのオプションは grep に直接渡される。ファイルが指
定されない場合は、標準入力を (必要であれば伸長した後で) grep に渡す。そ
れ以外の場合は、指示されたファイルを (必要であれば伸長した後で) grep に
渡す。
bzgrep が bzegrep や bzfgrep として呼び出された場合、 egrep と fgrep が
そ れ ぞ れ grep の代わりに使われる。環境変数 GREP が設定された場合、
bzgrep はその内容を grep プログラムの代わりに呼び出す。たとえば、
sh の場合: GREP=fgrep bzgrep string files
csh の場合: (setenv GREP fgrep; bzgrep string files)
著者
Charles Levert (charles@comm.polymtl.ca). Debian GNU/Linux で使うた め
に Philippe Troin
BZGREP(1) BZGREP(1)
NAME
bzgrep, bzfgrep, bzegrep - search possibly bzip2 compressed files for a
regular expression
SYNOPSIS
bzgrep [ grep_options ] [ -e ] pattern filename...
bzegrep [ egrep_options ] [ -e ] pattern filename...
bzfgrep [ fgrep_options ] [ -e ] pattern filename...
DESCRIPTION
Bzgrep is used to invoke the grep on bzip2-compressed files. All
options specified are passed directly to grep. If no file is speci-
fied, then the standard input is decompressed if necessary and fed to
grep. Otherwise the given files are uncompressed if necessary and fed
to grep.
If bzgrep is invoked as bzegrep or bzfgrep then egrep or fgrep is used
instead of grep. If the GREP environment variable is set, bzgrep uses
it as the grep program to be invoked. For example:
for sh: GREP=fgrep bzgrep string files
for csh: (setenv GREP fgrep; bzgrep string files)
AUTHOR
Charles Levert (charles@comm.polymtl.ca). Adapted to bzip2 by Philippe
Troin
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa