Re: remove double quote character from file names

From: Ralf Mardorf <ralf-mardorf_at_riseup.net>
Date: Thu, 16 Feb 2023 17:45:09 UTC
Hi,

how about uncritical chars, excepted of the ", for example a"lnum.txt .
Renaming without interaction is unsafe, since a duplicated name will
overwrite an existing name, but with interaction, it could be an endless
task. Instead of removing the " or replacing the " by another char, the
only alternative that is safe and unlikely requires much time consuming
interaction, is replacing the " by something like $(openssl rand -hex 4)
but this results in odd file names like a6c41752dlnum.txt or by adding
-n+1, e.g. alnum.txt-1001 . I wouldn't try to rename thousand of files,
to get rid of " in file names. What if e.g. a script needs to read
a"lnum.txt ? From where do come all the " in the file names? Maybe by
sharing files with apps from different operating systems? If so, will
a"lnum.txt renamed to alnum.txt-1001 become a"lnum.txt-1001 after
sharing again? 

Regards,
Ralf