freebsd-dev/usr.bin/less/lesspipe.sh
obrien bd0acd6275 Add an embellished lesspipe.sh as described in the man page.
P.S. it is stupid I have to define both SCRIPTS and SCRIPTSNAME.
2003-03-06 04:35:48 +00:00

14 lines
173 B
Bash

#! /bin/sh
# ex:ts=8
# $FreeBSD$
case "$1" in
*.Z) uncompress -c $1 2>/dev/null
;;
*.gz) gzip -d -c $1 2>/dev/null
;;
*.bz2) bzip2 -d -c $1 2>/dev/null
;;
esac