I have been trying to change the suffix on my backup files using the --suffix
function but I'm not quite sure how to do it. Currently this line of code
find ./$1 -name "IMG_****.JPG" -exec cp --backup=t {} ./$2 \;
searches the first command line argument directory for images in the IMG_****.JPG
format and copies them to the directory entered second, making copies of any files with duplicate names and adding the =t
suffix to the end giving IMG_****.JPG.~1~
etc. Instead of .~1~
I would like to add something like .JPG
, any ideas on how to use the --suffix
to do this?