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