Set a variable to every line of a find -exec loop

I want to set the MP3 tag on thousands of song files with a simple
script. This lists the contents of all tags:

find . -name .mp3 -exec id3tool {} \;

Now I want to set a variable to every filepath found, parse the
variable string and use the components to set the tag. Is this possible
in such a simple loop? How would I set a variable and reuse it inside
the loop?

Thanks. This is OSX 10.5.

-- Gnarlie
http://Gnarlodious.com/


--
Posted via a free Usenet account from http://www.teranews.com
gnarlodious [ Fr, 07 Dezember 2007 22:56 ] [ ID #1887720 ]
Linux » comp.unix.shell » Set a variable to every line of a find -exec loop

Vorheriges Thema: working with paths
Nächstes Thema: Help extracting strings via awk.