Photo archiving bash script created for Systems & Services module.
Copies all files matching regex IMG_XXXX.JPG (X = any number) from the source directory into a new flat photo archive directory.
Files that are not identical but have the same name will have '.JPG' appended on to the name to make them uniquely identifiable. The paths of duplicate files are written to duplicates.txt.