Hi experts, I'd like to ask for a bit of help with using id3v2. My mp3 files have names in form 'author_author__song_name.mp3' and don't have id3 tag at all. I'm trying to get author and song name to id3 tag from file name like this: ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | xargs -n1 -i id3v2 -t `ls *.mp3 | basename \{\} .mp3 | awk -F__ '{print $1}'` -A Greatest_Hits_80s -g Pop {}.mp3 This does not produce what I would expect and title is "author_author__song_name" instead of "author_author". When I try ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | awk -F__ '{print $1}' or ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | awk -F__ '{print $2}' I get author or song_name as expected. How can I combine the two and achieve what I want? Is there any other way to do this? Thx, Martin --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
On Sat, 2005-11-26 at 13:53 -0800, Martin wrote:
Hi experts,
I'd like to ask for a bit of help with using id3v2. My mp3 files have names in form 'author_author__song_name.mp3' and don't have id3 tag at all. I'm trying to get author and song name to id3 tag from file name like this:
ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | xargs -n1 -i id3v2 -t `ls *.mp3 | basename \{\} .mp3 | awk -F__ '{print $1}'` -A Greatest_Hits_80s -g Pop {}.mp3
This does not produce what I would expect and title is "author_author__song_name" instead of "author_author". When I try
ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | awk -F__ '{print $1}'
or ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | awk -F__ '{print $2}'
I get author or song_name as expected. How can I combine the two and achieve what I want? Is there any other way to do this?
Thx, Martin
First of all lame provides tag insertion lame track_01.mp3 Track001.mp3 --tl "Sample" --ta "Fran Martin" --tn "01" --ty "2005" --tg "Jazz" --tc "Converted by CWSIV using Suse Linux" --tt "Everytime We Say Goodbye" all on one like of course. So if your going to pull the names apart for the information to insert you will have to use variables and feed them to the relavant tag and then execute the "lame" line. man lame -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
participants (2)
-
Carl William Spitzer IV
-
Martin