I have a directory with more than a 1,000 folders on my Mac. Each folder is a person's last name and then first name separated by a comma. For example - Smith, John.
I want to rename all the directories with a shell script so Smith, John becomes John Smith
These directories will be ingested into a DAM system which will take folder names and make all the items under the directory into keywords. The way they are now Smith, John will tag each file under it with both "smith" and "John" as separate keywords. If I can rename all the files to "firstname lastname" without a comma all the files under it can be auto tagged with the person's name as a keyword in the DAM.
Thanks for any ideas!