title: How to find filenames longer than 42 chars on Mac OS
body: <p>I need to shorten the names of some files on an external hard drive in order to store them on another encrypted drive (The encryption doesn't allow filenames to be longer than 42 chars). The files I need to rename are organized in multiple folders with arbitrary sub-folder depth.</p>
  
  <p>I'm thinking about two options to do this:</p>
  
  <ul>
  <li>Is there some way to get a list of the files with a filename longer than 42 chars in Automator? I'd then rename them by hand - I don't expect them to be much.</li>
  <li>Is there a simple but robust shell script which crops filenames to a specific length (iteratively for all folders and recursively for all subfolders)? It should possibly also be able to handle conflicts if the cropping of multiple filenames leads to the same filename.</li>
  </ul>
  
  <p>Can you help me with some of the options? Or do you have any other options to suggest?</p>