.Hi. I have a bunch of jpgs in 100s of subfolders , I know I can move them all with this command
find -type f -iname "*.jpg" -exec mv -av {} /home/root/private/pics/ \;
But my all my jpgs are like this in each subfolder
0001.jpg
0002.jpg
0003.jpg
0004.jpg
0005.jpg
and so up to 2500.jpgs in one folder
So it overwrites them when putting them into the directory 'pics' because most of them have the same file name
How can i rename or avoid the same JPG image names being overwrited with this command?
find -type f -iname "*.jpg" -exec mv -av {} /home/root/private/pics/ \;