Re: shell script for removing unprintable characters in file names

From: paul beard <paulbeard_at_gmail.com>
Date: Sat, 30 Nov 2024 16:10:28 UTC
I read the question as how to recover and rename the files to remove the
out of bounds characters, not how to view the names.

On Sat, Nov 30, 2024 at 8:04 AM D'Arcy Cain <darcy@druid.net> wrote:

> On 11/30/24 08:33, Per olof Ljungmark wrote:
> > Hi,
> >
> > I am tasked with recovering hundreds or more files created with unknown
> > OSs and have unknown characters in the name, replaced with a '?'.
> >
> > Like file?nam?.???
> >
> > Please, if you have such a script can you post or email it? Replacing
> > the unknown character with anything, like '-' or '_' using whatever
> > shell, sh, bash or csh.
> >
>
> Perhaps you just need to set your terminal to UTF:
>
> export LC_ALL=en_US.UTF-8
> export LC_MESSAGES=en_US.UTF-8
>
> --
> D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
> http://darcy.druid.net/                    |  and a sheep voting on
> +1 416 788 2246     (DoD#0082)    (eNTP)   |  what's for dinner.
> IM: darcy@VybeNetworks.com, VoIP: sip:darcy@druid.net
>
>

-- 
Paul Beard / www.paulbeard.org/