renaming umlauts with bash-script
hey guys, have had troubles with umlauts … so, quick and dirty, i’ve written some lines for the bash: #! /bin/bash # rnUmlauts.sh ONE=1 number=0 EXPECTED_ARGS=2 if [ $# -ne $EXPECTED_ARGS -o \( “$1” != “–test” -a “$1” != “–force” \) ] then echo “NAME” echo “\trnUmlauts - Renaming files with umlauts\n” echo “Synopsis” echo “\t`basename $0` –force|–test pathname\n” echo “Examples” echo “\t`basename $0` –test /usr/share” echo “\t\tonly shows which files will be renamed in the directory /usr/share\n” echo “\t`basename $0` –force /etc/doIt” echo “\t\trenaming the files with umlauts in the directory /etc/doIt\n” exit 1 fiif [ -d $2 ]; then echo “Searching for files with umlauts in $2 …” else echo “Directory $2 doesn’t exist!...