Skip to content

Commit b9f2725

Browse files
author
Andrew Wong
committed
replace double underlines last
1 parent 47e9eb8 commit b9f2725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bulkrename

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ find "$1" -depth | while read line; do
88
new="$(echo $old | tr ' ' '_' \
99
| tr -d '()[]{},?!' | tr -d "'" \
1010
| tr '[[:upper:]]' '[[:lower:]]' \
11-
| sed 's/_-_/-/g' | sed 's/__/_/g')"
11+
| sed 's/__/_/g' | sed 's/_-_/-/g' )"
1212
[[ "$old" != "$new" ]] && mv -iv "$dir/$old" "$dir/$new"
1313
done

0 commit comments

Comments
 (0)