All pastes #798463 Raw Edit

Stuff

public text v1 · immutable
#798463 ·published 2007-11-26 20:50 UTC
rendered paste body
INPUT=
SEPARATOR="#"

function help() {
        echo "blabla"
}

if [ $# -gt 0 ]; then

        if [ -e $1 ]; then
                INPUT=$1
                shift
        fi

        if [ `echo $1 | cut -c 1-2` == "-T" ]; then
                DELIMITER=`echo $1 | cut -c 3`
                shift
        fi

        if [ $1 == "-h" ]; then
                help
        fi
fi