Rev | Author | # | Line |
---|---|---|---|
1 | perry | 1 | BZGREP |
2 | !!!BZGREP | ||
3 | NAME | ||
4 | SYNOPSIS | ||
5 | DESCRIPTION | ||
6 | AUTHOR | ||
7 | SEE ALSO | ||
8 | ---- | ||
9 | !!NAME | ||
10 | |||
11 | |||
12 | bzgrep, bzfgrep, bzegrep - search possibly bzip2 compressed files for a regular expression | ||
13 | !!SYNOPSIS | ||
14 | |||
15 | |||
16 | __bzgrep__ [[ grep_options ] __[[ -e ]__ ''pattern | ||
17 | filename''...__ | ||
18 | bzegrep__ [[ egrep_options ] __[[ -e ]__ ''pattern | ||
19 | filename''...__ | ||
20 | bzfgrep__ [[ fgrep_options ] __[[ -e ]__ ''pattern | ||
21 | filename''... | ||
22 | !!DESCRIPTION | ||
23 | |||
24 | |||
25 | ''Bzgrep'' is used to invoke the ''grep'' on | ||
26 | bzip2-compressed files. All options specified are passed | ||
27 | directly to ''grep.'' If no file is specified, then the | ||
28 | standard input is decompressed if necessary and fed to grep. | ||
29 | Otherwise the given files are uncompressed if necessary and | ||
30 | fed to ''grep.'' | ||
31 | |||
32 | |||
33 | If ''bzgrep'' is invoked as ''bzegrep'' or | ||
34 | ''bzfgrep'' then ''egrep'' or ''fgrep'' is used | ||
35 | instead of ''grep.'' If the GREP environment variable is | ||
36 | set, ''bzgrep'' uses it as the ''grep'' program to be | ||
37 | invoked. For example: | ||
38 | |||
39 | |||
40 | for sh: GREP=fgrep bzgrep string files for csh: (setenv GREP | ||
41 | fgrep; bzgrep string files) | ||
42 | !!AUTHOR | ||
43 | |||
44 | |||
45 | Charles Levert (charles@comm.polymtl.ca). Adapted to bzip2 | ||
46 | by Philippe Troin | ||
47 | !!SEE ALSO | ||
48 | |||
49 | |||
50 | grep(1), egrep(1), fgrep(1), bzdiff(1), bzmore(1), | ||
51 | bzless(1), bzip2(1) | ||
52 | ---- |