I want to search a folder and its subfolders by file type and move or copy them to another folder (directly, no subfolders any more). There will be some assumed duplicates which aren't duplicates. I would like these to be copied in another folder.
No problem to find and copy the files, but only interactive for the duplicates. Cause there will be >50k files and something arround 5k duplicates, a little more automatics is needed than i had with this command:
Code
find /srv/dev-disk-by-xxx/folder1 -type f -name '*.cvs' -exec cp -i /srv/dev-disk-by-xxx/folder2 {} \;
The command asks me for every duplicate but I want them to get copied directly to /srv/disc-by-xxx/folder3. Could this be possilbe with 2x find and an if-then-else-loop?