From 4a5a08dcc6cf209203efccad9cc2714beb9fdb50 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 18 Aug 2015 11:43:51 +0200 Subject: Add zat and nwhois. --- bin/zat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 bin/zat (limited to 'bin/zat') diff --git a/bin/zat b/bin/zat new file mode 100755 index 0000000..0d2ae17 --- /dev/null +++ b/bin/zat @@ -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 -- cgit v1.2.3