15 lines
156 B
Plaintext
15 lines
156 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
for file in $@; do
|
||
|
if [ -f $file ]; then
|
||
|
case $file in
|
||
|
*.gz)
|
||
|
zcat -f $file;;
|
||
|
*.xz)
|
||
|
xzcat -f $file;;
|
||
|
esac
|
||
|
fi
|
||
|
done
|