xref: /freebsd/usr.bin/less/lesspipe.sh (revision f07cfbf5d4cbf7f2e6e384862a59a2169bdaa32b)
1#! /bin/sh
2# ex:ts=8
3
4# $FreeBSD$
5
6case "$1" in
7	*.Z)	uncompress -c $1	2>/dev/null
8		;;
9	*.gz)	gzip -d -c $1		2>/dev/null
10		;;
11	*.bz2)	bzip2 -d -c $1		2>/dev/null
12		;;
13esac
14