add handy thing to rename files with colons to dashes

main
Andrew Coleman 2022-08-11 13:12:26 -04:00
parent 430f1f0b9a
commit 8c126dabb3
1 changed files with 3 additions and 0 deletions

View File

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