shatfield1529
s|hatfield not shat|field
The many MP3s on my HD are organized in folders using the following scheme by iTunes:
iTunes\ Music/artist/album/track
What I want to do is, using the 'printf' command, create a file 'albumlist' which, obviously enough, is a list of all the albums on my HD.
What I planned on doing was just use 'printf' and have it print 'iTunes\ Music/*/*' to 'albumlist' with the format 'Artist - Album\n'. Compilations aren't a problem, as the folder scheme would make it appear as 'Compilation - Album'.
The hard part is, tracks without a designated album are put in a folder 'Unknown Album'.
Being relatively inexperienced with UNIX, how would I use the 'printf' command to format my output like this, and also prevent results including the string 'Unknown Album' from appearing in 'albumlist'?
Thanks in advance.
P.S. - If it's relevant, my shell type is tcsh.
iTunes\ Music/artist/album/track
What I want to do is, using the 'printf' command, create a file 'albumlist' which, obviously enough, is a list of all the albums on my HD.
What I planned on doing was just use 'printf' and have it print 'iTunes\ Music/*/*' to 'albumlist' with the format 'Artist - Album\n'. Compilations aren't a problem, as the folder scheme would make it appear as 'Compilation - Album'.
The hard part is, tracks without a designated album are put in a folder 'Unknown Album'.
Being relatively inexperienced with UNIX, how would I use the 'printf' command to format my output like this, and also prevent results including the string 'Unknown Album' from appearing in 'albumlist'?
Thanks in advance.
P.S. - If it's relevant, my shell type is tcsh.