我目前正在重新组织我的所有备份。我的问题是,在这些不同的备份中,既有不同又有相同的 .mp3 文件。
我想知道是否有适用于 mac 的程序或代码可以搜索地图中的所有 .mp3 文件以及它的底层地图/目录。如果可能,该程序还将这些 .mp3 文件的唯一版本复制到另一个目录。
亲切的问候, Bigsortvids
我目前正在重新组织我的所有备份。我的问题是,在这些不同的备份中,既有不同又有相同的 .mp3 文件。
我想知道是否有适用于 mac 的程序或代码可以搜索地图中的所有 .mp3 文件以及它的底层地图/目录。如果可能,该程序还将这些 .mp3 文件的唯一版本复制到另一个目录。
亲切的问候, Bigsortvids
After a lot of time searching on google and other forums and by trying I have found the following command as an answer:
find /fromWhichDirectory "*.mp3" -type f -print0 | xargs -0 -I '{}' mv "{}" /toWhichDirectory
!!!! PAY ATTENTION that when you don't end the command with ctrl+c and you delete the files that where moved or copied to the toWhichDirectory terminal will try to replace the files with the files from fromWhichDirectory which in the case of moving(mv) you get irritating errors and in the case of copying(cp) all the files will be copied again.
I just wanted to delete some(3000) .mp3 files that didn't fit in the row and they just appeared again. Very irritating and long process, took me an hour to delete all the right mp3 files and empty the trashcan. I had to remove almost 100gb of mp3 );
Hope I helped someone with this answer, greetings, Bigsortvids