1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh usage() { echo "$0: usage: $0 -u" exit 1 } [ -z "$1" ] && usage case "$1" in "-u") id -un ;; *) usage ;; esac