On Wednesday 10 August 2011 06:53:58 Darac Marjal wrote: > On Tue, Aug 09, 2011 at 01:24:46PM -0700, Mike McClain wrote: > > On Tue, Aug 09, 2011 at 12:42:18PM -0400, Eike Lantzsch wrote: > > > Hi: > > > > > > For some time I'm looking to find a method to remove unicode control > > > characters like U+202A; U+202C; U+200F from filenames. > > > I found lots of examples to do this programmatically with python, perl, > > > even for VB and Java. > > > I was looking to do this with bash, find, grep and/or even sed because > > > I just never wrote code in python or perl. > > > Can some kind soul please give me a hint how to proceed? > > If you've found a recipe in perl, I can recommend /usr/bin/rename (part > of the perl package and, on my system, a link to /usr/bin/prename). The > syntax is "rename regex filespec" so you can say "rename 's/foo/bar/ > bar.jpg". Maybe that'll help.
Sigh - maybe I do have to learn Perl - to a certain degree (regex) at least. Thank y'all for the recommendations. Eike -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

