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:
0440f11
)
taking out colons also, as painful as that sounds.
author
Chris Koeritz
<fred@gruntose.com>
Mon, 29 Jul 2013 19:18:13 +0000
(15:18 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 29 Jul 2013 19:18:13 +0000
(15:18 -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 40eda0375c0d6609666b0467ff88610fb485f9f3..e395a3e87d2fbece3e3d30b90fef51034f1daa94 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' "