heiko-barth.de

// cat & zcat kombiniert

catz
#!/bin/bash
 
[ -t 0 ] && [ "$1" == "" ] &&
        echo "Concatenate files (gziped files decompressed) and print on the standard output." >&2 &&
        echo "Syntax: catz [<files>]" >&2 &&
        echo >&2 &&
        exit 1
 
[ ! -t 0 ] && cat - # output STDIN
 
while [ 1 ]; do
        [ "$1" == "" ] && exit
        [ "$1" == "-" ] && shift && continue
        if [[ "$1" =~ gz$ ]]; then
                zcat "$1"
        else
                cat "$1"
        fi
        shift
done

// Freitag

Life Is Fun Part II

Life is like a camera.
Just focus on what's important,
capture the good times,
develop from the negatives
and if things don't turn out - take another shot..

foo/bar

// Sonntag

Rage Against The Machine - Killing In The Name(Less Angry Version)

Chilling in the name of.. 8-)

foo/bar

Web 2.0



RSS   RSS abonieren

Github   Github
QR Code