From: Chris Koeritz Date: Mon, 29 Jul 2013 19:18:13 +0000 (-0400) Subject: taking out colons also, as painful as that sounds. X-Git-Tag: 2.140.90~957 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=990a1616672eca15ef0e43b7ace1121e33def2d1;p=feisty_meow.git taking out colons also, as painful as that sounds. --- diff --git a/scripts/files/spaces_to_underscores.sh b/scripts/files/spaces_to_underscores.sh index 40eda037..e395a3e8 100644 --- a/scripts/files/spaces_to_underscores.sh +++ b/scripts/files/spaces_to_underscores.sh @@ -12,7 +12,7 @@ fi while [ $# -gt 0 ]; do file="$1"; shift - newname="$(echo "$file" | tr A-Z a-z | tr -s ' ' '_' | tr -d "\\\~'," | sed -e 's/\([0-9]\)_\./\1./g' | sed -e 's/_-_/-/' )" + newname="$(echo "$file" | tr A-Z a-z | tr -s ' ' '_' | tr -d "\\\~',:" | sed -e 's/\([0-9]\)_\./\1./g' | sed -e 's/_-_/-/' )" if [ "$file" != "$newname" ]; then # we've effected a name change, so let's actually do it. echo "moving '$file' => '$newname' "