1997-12-20 19:20:33 +00:00
|
|
|
#!/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.
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-12-20 19:20:33 +00:00
|
|
|
|
|
|
|
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 "$@"
|