Re: shell script for removing unprintable characters in file names
Date: Sat, 30 Nov 2024 16:04:06 UTC
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