Use Automator to drop one letter in the naming I've a kind of download-setup on my Mac and it does an excellent job downloading all the files I need. But for some reason the setup is renaming my files with "Title 9x88 Name". And I would like to drop this one "x" whenever a new files is detected in the directory.

Everything works perfect in Automator, except for the dropping the 1 letter. 



I know Automator doesn't support wildcards, but is there any other way in how to drop the single X in the naming?
I'm open for every creative solution (shell scripts too).
You could use a Run Shell Script action like this:



for f in *;do [[ $f =~ (.+ [0-9]+)x([0-9]+ .+) ]]&amp;&amp;mv "$f" "${BASH_REMATCH[1]}${BASH_REMATCH[2]}";done;exit 0

Or if the filenames don't contain other x characters, you could replace the script with for f in *;do mv "$f" "${f/x/}";done.