Skip to content

Commit

Permalink
replace double underlines last
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Wong committed Apr 19, 2012
1 parent 47e9eb8 commit b9f2725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulkrename
Expand Up @@ -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.