Page tree
Skip to end of metadata
Go to start of metadata

So I have music downloaded from itunes and then files from Music Match all jumbled up with duplicate files which iTunes generated somehow.

I did a dump of all my files. Then using iCloud was able to achieve,

  1. iTunes-dump = everything
  2. iTunes-iCloud-Purchased = purchased files only

Now I want to clean up iTunes-dump to leave only my Music Match files.

(to do) - Script to generate sample files for each folder.

Remove Duplicates

...

Remove Delta

Returns only Music Match files from the iTunes-dump that do not exist in iTunes-iCloud-Purchase (I actually want to return files to delete, but not ifgure out yet),

 diff iTunes-Dump-file-list.sorted.txt iTunes-iCloud-Purchased.sorted.txt | grep "<" | sed 's/< /rm "/' | sed -e 's/$/"/'

Generate test script using ls to verify that these same files do not exist in iTunes-iCloud-Purchase,

diff iTunes-Dump-file-list.sorted.txt iTunes-iCloud-Purchased.sorted.txt | grep "<" | sed 's/< /ls "/' | sed -e 's/$/" >> ls-test-result.txt/' > ls-test.txt
  • No labels