diff options
author | wosch <wosch@FreeBSD.org> | 1997-12-20 19:20:33 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1997-12-20 19:20:33 +0000 |
commit | 62ece1adce424ae0cd9266dc2068d1d360da139a (patch) | |
tree | a640b7edee6be162aece891ae2feffa0e6c35553 /gnu/usr.bin/gzip/zgrep.libz | |
parent | 3bedd0364b3438855308123bbfdb306215ae7f0b (diff) | |
download | FreeBSD-src-62ece1adce424ae0cd9266dc2068d1d360da139a.zip FreeBSD-src-62ece1adce424ae0cd9266dc2068d1d360da139a.tar.gz |
Added zgrep.libz. This version of zgrep(1) depend on a
grep(1) linked with libz.
Diffstat (limited to 'gnu/usr.bin/gzip/zgrep.libz')
-rw-r--r-- | gnu/usr.bin/gzip/zgrep.libz | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/usr.bin/gzip/zgrep.libz b/gnu/usr.bin/gzip/zgrep.libz new file mode 100644 index 0000000..07d5267 --- /dev/null +++ b/gnu/usr.bin/gzip/zgrep.libz @@ -0,0 +1,18 @@ +#!/bin/sh +# Copyright (c) Dec 1997 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. +# Public Domain. +# +# zgrep - Search possibly compressed files for a regular expression. This +# version of zgrep(1) depend on a grep(1) linked with libz. +# +# $Id$ + +PATH=/bin:/usr/bin; export PATH + +case "$0" in # grep variant + *egrep) grep=${EGREP-egrep};; + *fgrep) grep=${FGREP-fgrep};; + *) grep=${GREP-grep};; +esac + +exec ${grep} -Z "$@" |