1111938Sobrien#! /bin/sh 2111938Sobrien# ex:ts=8 3111938Sobrien 4111938Sobrien# $FreeBSD: releng/10.2/usr.bin/less/lesspipe.sh 207842 2010-05-10 06:59:50Z mm $ 5111938Sobrien 6111938Sobriencase "$1" in 7146313Sdes *.Z) 8169956Sle exec uncompress -c "$1" 2>/dev/null 9111938Sobrien ;; 10146313Sdes *.gz) 11169956Sle exec gzip -d -c "$1" 2>/dev/null 12111938Sobrien ;; 13146313Sdes *.bz2) 14169956Sle exec bzip2 -d -c "$1" 2>/dev/null 15111938Sobrien ;; 16207842Smm *.xz) 17207842Smm exec xz -d -c "$1" 2>/dev/null 18207842Smm ;; 19207842Smm *.lzma) 20207842Smm exec lzma -d -c "$1" 2>/dev/null 21207842Smm ;; 22111938Sobrienesac 23