From e9f0a1dd5b631103c02d4791c5d7bd01a55cbf07 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 21 Sep 2013 13:12:22 -0400 Subject: [PATCH] removed < > and " from names also. --- scripts/files/spaces_to_underscores.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/files/spaces_to_underscores.sh b/scripts/files/spaces_to_underscores.sh index 66823e19..8c4696d8 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' " -- 2.34.1