summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/gzip/zgrep.libz
blob: 3001efae61e095f3d8906b3cf545bcbb1a3e52d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.
#
# $FreeBSD$

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 "$@"
OpenPOWER on IntegriCloud