Handling my scattered music files... the beginning
Saturday, 9. August 2008, 12:12:15
I keep my music in a /data/music folder, /data is in its own filesystem.
I encode my albums into my home directory then I mv or cp it (according to my current mood) to the final location.
For any reason, I sometimes press C-c during the mv or cp operation... I'm getting bored, you say ?
Weeks or months after, I have encoded many other albums and have aborted the operation many times in many different ways. Now, I'm worried ...
For instance ... my Bach collection (I'm proud of xD):
~$ shopt -s extglob nocaseglob; ls -ld @(*bach*) | wc -l 94
The destination is /data/music/bach.
I begin with: (the working directory is my home directory)
for rep in @(*Bach*); do diff -r {$PWD,/data/music/bach}/"$rep"; donewhich outputs that kind of lines:
diff: /home/arnaud/Bach,_John_Sebastian-Harpsichord_Concertos_1052-1055: No such file or directory Only in /data/music/bach/Bach,_J.S.-II-9,_Klavierwerke_1700-1710_Teil_3,_BWV_909,832,989,821,955,820,950,992: 7.BWV_950,_Fuge_über_ein_Thema_von_Tomaso_Albinoni,_in_A_major.ogg
For the next steps of the adventure, I'll do another post, soon.