9
2
I have two music libraries, one a newer version than the other. I would like to compare them to figure which files I need to copy from new music tree to old.
I have tried diff --brief -r /oldmusicdir/ /newmusicdir/
based on another user's suggestion but ^C the process after fifteen minutes (I'm guessing diff is scanning the music files themselves -- which is not necessary).
Then I tried find /oldmusicdir/ -type d | sort > oldmusicdir
for old and new, then ran diff oldmusicdir newmusicdir
However, since I stored the music directories in separate locations every single entry was flagged.
Next I tried running find /musicdir/ -type d | basename -s - | sort > musicdir
but then my musicdir file simply read "-"
Does anyone know how to get basename to accept from STDIN? Or, does anyone have a better way of quickly comparing two music directories?
Thanks!
Rsync seems like a very powerful program. Definitely worth my time to get to know. Running
rsync -nv --delete a/ b/ | grep deleting
gave me a list of the files that existed on b but not a. Thanks! – curios – 2014-03-28T05:42:30.903