jeudi 22 janvier 2015

Filenames with \n at the end is problematic when shared over afp


I was doing some clean up on large hard drives mounted via afp, and my process got stucked on a file like this:



find . -iname "*ins* | od -c
[...]
0000060 [....] i n s . m p 4 \n


I got rid of the problem manually, but now I would like to find every other problematic files on HFS+ filesystems.


How may I find those problematic filenames, and possibly everything that is known to be problematic, like brackets, backslashes, etc..


This file:



touch h$'\r'
h \r \n


is not found with this:





Aucun commentaire:

Enregistrer un commentaire