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:
1cf911d
)
took out parens and curly brackets too.
author
Chris Koeritz
<fred@gruntose.com>
Mon, 7 Oct 2013 23:28:30 +0000
(19:28 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 7 Oct 2013 23:28:30 +0000
(19:28 -0400)
scripts/files/spaces_to_underscores.sh
patch
|
blob
|
history
diff --git
a/scripts/files/spaces_to_underscores.sh
b/scripts/files/spaces_to_underscores.sh
index d0a513949e0920b9391015208f1281262d165e57..03c58cfc2609d2c11c6b53473a70c23873095900 100644
(file)
--- 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 -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' "