I want to copy 1000 random files from a folder and sub folders with many 1000s of files but some of the files have the same name and it prompts me to overwrite but how can I let it over write automatically or rename the file if the file has the same name?
I am using the following
thanksCode:cp $(find . -iname "test*.ext" -print | shuf -n 100) /home/user/rand
Bookmarks