X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Ffiles%2Fspaces_to_underscores.sh;h=03c58cfc2609d2c11c6b53473a70c23873095900;hb=71303a6ccf382269d70249e7ab5a6bdc080bdca1;hp=8c4696d8f224422f64bac0f98030923fe8421b90;hpb=e9f0a1dd5b631103c02d4791c5d7bd01a55cbf07;p=feisty_meow.git diff --git a/scripts/files/spaces_to_underscores.sh b/scripts/files/spaces_to_underscores.sh index 8c4696d8..03c58cfc 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 -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' "