Bulk rename files in macOS
Due to the fact I rip my CDs so I can listen them on my Sony NW-A306 I often have to bulk rename files after ripping.
This is the way you can do it
#!/bin/bash for f in *.flac; do NEW_FILE=`echo "$f" | sed 's/OLD_TEXT/NEW_TEXT/'` mv "${f}" "${NEW_FILE}" done
Yes, I know, there are one liners that can do it. I don’t care.
August 28th, 2025 in
main entries