Coding (OU)

Find Copy and Rename Files in a Bash Script

The find command is very powerful, especially when combined with the -exec option, you can find and copy files to different locations, even renaming them at the same time. The difficulty comes however, when trying to alter the filename (retaining the original filename), for example to add a new prefix or suffix.