# normalize string given as an argument
n() { sed -e 's/^[ -]\+//' -e 's/[ -]\+$//' -e 's/[ ()-]\+/-/g' -e "s/'//g" | tr '[:upper:]' '[:lower:]' $1; }
# normalize name of the single file (renames file)
m() { mv "$1" "$(echo $1 | n)"; }
# normalize names of all files in the current directory
f() { for i in *; do m "$i"; done; }