How to get rid of bad chrs?

rikona rikona at sonic.net
Sun Aug 1 23:13:30 UTC 2021


On Sun, 1 Aug 2021 21:56:04 +0100
Colin Law <clanlaw at gmail.com> wrote:

> On Sun, 1 Aug 2021 at 21:25, rikona <rikona at sonic.net> wrote:
> >
> > Just did a backup of new box and got many errors using grsync.
> > Almost all were because of 'bad' chrs in the file name ["?: etc].
> > Some names have more than 1 bad chr. Is there a way to safely
> > remove just this set of chrs in every file name within a
> > folder/subfolders, and leave the rest of the chrs in the file name
> > intact? (safely = no chance of losing a file :-)  
> 
> grsync should not throw an error just because a file name contains
> unusual characters such as question mark.  File names can contain any
> character except '/'.  Are you sure that is what the problem is?

I'm not sure. Looking over the list of errors [which I don't have
anymore - it was just a screen popup], I saw almost all with 1 or more
?:" etc, and just assumed that was the problem. I ran it again and the
error is Invalid argument (22). I checked that out and it seems to have
multiple causes, so still not clear what the problem is.

Thanks.




More information about the ubuntu-users mailing list