diff options
Diffstat (limited to 'bin/zat')
| -rwxr-xr-x | bin/zat | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + echo "Usage: $0 [FILES]" + echo + echo "$0 is both cat as zcat." +fi + +while [ $# -ne 0 ]; do + case "$1" in + *.gz) + zcat "$1" + shift + ;; + *) + cat "$1" + shift + ;; + esac +done |
