exiter.sh 141 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh

if [ $# -gt 3 ]; then
    exit 1
fi

if [ $# -ge 2 ]; then
    echo $2
fi
if [ $# -ge 3 ]; then
    echo $3 >&2
fi

exit ${1:-0}