Permalink
Browse files

replace double underlines last

  • Loading branch information...
1 parent 47e9eb8 commit b9f27253b97152f48f9a8c99d38d26f780f5c100 Andrew Wong committed Apr 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bulkrename
View
@@ -8,6 +8,6 @@ find "$1" -depth | while read line; do
new="$(echo $old | tr ' ' '_' \
| tr -d '()[]{},?!' | tr -d "'" \
| tr '[[:upper:]]' '[[:lower:]]' \
- | sed 's/_-_/-/g' | sed 's/__/_/g')"
+ | sed 's/__/_/g' | sed 's/_-_/-/g' )"
[[ "$old" != "$new" ]] && mv -iv "$dir/$old" "$dir/$new"
done

0 comments on commit b9f2725

Please sign in to comment.