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:
8215b15
)
removing brackets now also.
author
Chris Koeritz
<fred@gruntose.com>
Thu, 5 Sep 2013 01:43:58 +0000
(20:43 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Thu, 5 Sep 2013 01:43:58 +0000
(20:43 -0500)
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 27f0cb5eea8e0764250efaa671a63572bc635b56..66823e199dd4de80a3b3aa8a5f9c019f68ce56ba 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 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' "