2021-08-29

MacOS - How to rename all files in a directory, via terminal, appending a given string

for file in *.FILE_EXTENSION_IF_ANY
do
  mv "$file" "STRING-TO-APPEND-${file}"
done

No comments:

Post a Comment