From 5cc699031a0455aaa808a7d33b7c6127ecdc7089 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 30 Jul 2013 13:39:23 -0400 Subject: [PATCH] removing question marks 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 e395a3e8..27f0cb5e 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