1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh f=$1 shift for x in "$@"; do make "${x%.ttf}".dit case "$x" in */*) ./rename "${x%/*}/$f" "${x%.ttf}.dit" ;; *) ./rename "$f" "${x%.ttf}.dit" ;; esac done