Re: shell script for removing unprintable characters in file names
- In reply to: paul beard : "Re: shell script for removing unprintable characters in file names"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 30 Nov 2024 16:47:25 UTC
On 2024-11-30 17:10, paul beard wrote: > 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. Yes, exactly, viewing is doable, batch recovering is what I'm after. > On Sat, Nov 30, 2024 at 8:04 AM D'Arcy Cain <darcy@druid.net > <mailto: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 <mailto:darcy@druid.net>> > | Democracy is three wolves > http://darcy.druid.net/ <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 > <mailto:sip%3Adarcy@druid.net> > > > > -- > Paul Beard / www.paulbeard.org/ <http://www.paulbeard.org/>