dotfiles/private_dot_local/private_bin/executable_rename-colons-to...

4 lines
123 B
Bash
Raw Normal View History

#!/bin/sh
find . -name '*:*' -type f -print0 | perl -0ne 'rename $_, s{[^/]+$}{$& =~ y/:/-/r}res or warn "rename $_: $!"'