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