From: Chris Koeritz Date: Thu, 5 Sep 2013 01:43:58 +0000 (-0500) Subject: removing brackets now also. X-Git-Tag: 2.140.90~934 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=ca143528fcea0827e8e0ffcc49d65d2c3f55256c;p=feisty_meow.git removing brackets now also. --- diff --git a/scripts/files/spaces_to_underscores.sh b/scripts/files/spaces_to_underscores.sh index 27f0cb5e..66823e19 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' "