1

Have lots of failures copying my disk to another, exFAT disk.
Specifically, file names with ':', '|' chars did not get through.
What is the allowed charset?
Is there a program to solve the issue, like changing the illegal chars to '.'?

Alex B
  • 347
  • 1
  • 3
  • 9

1 Answers1

0

One possible solution (works for me) is to rename all the original files replacing the illegal chars, e.g.

find . -name "*[\:\|]*" -execdir rename -v 's/[\:\|]/./g' '{}' \+

Note there are multiple incompatible versions of the rename command, you might need to use prename or perl-rename.

ᅟᅟᅟ
  • 133
  • 6
Alex B
  • 347
  • 1
  • 3
  • 9