2003-03-06 04:35:48 +00:00
|
|
|
#! /bin/sh
|
|
|
|
# ex:ts=8
|
|
|
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
case "$1" in
|
2016-01-15 23:13:01 +00:00
|
|
|
*.zip)
|
|
|
|
exec unzip -c "$1" 2>/dev/null
|
|
|
|
;;
|
2005-05-17 11:08:11 +00:00
|
|
|
*.Z)
|
2007-05-24 18:28:08 +00:00
|
|
|
exec uncompress -c "$1" 2>/dev/null
|
2003-03-06 04:35:48 +00:00
|
|
|
;;
|
2005-05-17 11:08:11 +00:00
|
|
|
*.gz)
|
2007-05-24 18:28:08 +00:00
|
|
|
exec gzip -d -c "$1" 2>/dev/null
|
2003-03-06 04:35:48 +00:00
|
|
|
;;
|
2005-05-17 11:08:11 +00:00
|
|
|
*.bz2)
|
2007-05-24 18:28:08 +00:00
|
|
|
exec bzip2 -d -c "$1" 2>/dev/null
|
2005-05-17 11:08:11 +00:00
|
|
|
;;
|
2010-05-10 06:59:50 +00:00
|
|
|
*.xz)
|
|
|
|
exec xz -d -c "$1" 2>/dev/null
|
|
|
|
;;
|
|
|
|
*.lzma)
|
|
|
|
exec lzma -d -c "$1" 2>/dev/null
|
|
|
|
;;
|
2017-04-15 20:06:24 +00:00
|
|
|
*.zst)
|
|
|
|
exec zstd -d -q -c "$1" 2>/dev/null
|
|
|
|
;;
|
2023-02-19 16:31:11 +00:00
|
|
|
*) exec cat "$1" 2>/dev/null
|
|
|
|
;;
|
2003-03-06 04:35:48 +00:00
|
|
|
esac
|