From e64b6f690c41e5eb3176093c16dbd12152cfe2f7 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 4 Aug 2015 14:56:52 -0400 Subject: [PATCH] added exclamation point to list of characters we want to whack. --- scripts/files/replace_spaces_with_underscores.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/files/replace_spaces_with_underscores.sh b/scripts/files/replace_spaces_with_underscores.sh index 3f26f6a0..560b7711 100644 --- a/scripts/files/replace_spaces_with_underscores.sh +++ b/scripts/files/replace_spaces_with_underscores.sh @@ -12,7 +12,7 @@ fi while [ $# -gt 0 ]; do file="$1"; shift - newname="$(echo "$file" | 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 "'$file' => '$newname'" -- 2.34.1