File: catz

package info (click to toggle)
debian-cd 3.2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,848 kB
  • sloc: sh: 6,129; perl: 4,129; makefile: 413
file content (14 lines) | stat: -rwxr-xr-x 156 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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