Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

remove LF characters from file names

I have a folder full of files with filenames that contain LF character (ASCII code 10). I want to use Automator's "Replace Text" funcion to remove these non printing characters from file names. Is there a way to do it?


If automator is not able to do this task, I will take a bash script or applescript solution as well...

MBA (11", 2010), iMac (27", 2010)-OTHER, Mac OS X (10.7.2)

Posted on Dec 4, 2011 9:46 AM

Reply
6 replies

Mar 8, 2013 7:43 PM in response to pjdube

Good for you! So long as the thread remains 'unsolved' I see no reason not to offer answers. I for one have found this discussion useful. I wasn't aware of the 'tr' command until reading this thread, and found out some useful tricks you can do with it from exploring the tr man page.


If you hadn't brought this thread back to life, I'd have missed out on that, so here's a 'thanks' 🙂 from me, too!

remove LF characters from file names

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.