projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3f9095
)
added exclamation point to list of characters we want to whack.
author
Chris Koeritz
<fred@gruntose.com>
Tue, 4 Aug 2015 18:56:52 +0000
(14:56 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Tue, 4 Aug 2015 18:56:52 +0000
(14:56 -0400)
scripts/files/replace_spaces_with_underscores.sh
patch
|
blob
|
history
diff --git
a/scripts/files/replace_spaces_with_underscores.sh
b/scripts/files/replace_spaces_with_underscores.sh
index 3f26f6a0920a4072e119f93d74d40e9b612e6540..560b771118fe6864d37d44cf7fb9fbfe65c2431f 100644
(file)
--- 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'"