1#! /bin/sh 2# ex:ts=8 3 4# $FreeBSD: releng/10.2/usr.bin/less/lesspipe.sh 207842 2010-05-10 06:59:50Z mm $ 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 ;; 16 *.xz) 17 exec xz -d -c "$1" 2>/dev/null 18 ;; 19 *.lzma) 20 exec lzma -d -c "$1" 2>/dev/null 21 ;; 22esac 23