I need to assemble a lot of images into one directory. Many of those images have the same file names.
Is there some safe version of mv
that will automatically rename files if the target filename already exists so that pic1.jpeg
becomes something like pic1_2.jpeg
?
I could write my own python script but there has to be something like this out there so I can do:
find . -type f -name *.jpg -exec mvsafe '{}' /targetpath/ \;