On Thu, 9 Sep 2004, Dylan
which I can grep lines from:
dylan@scooby(1):/media/server/music/test> ogginfo "David Bowie - Blue Jean.ogg" | grep ARTIST ARTIST=David Bowie dylan@scooby(1):/media/server/music/test>
You could try this: artist=$(ogginfo "David Bowie - Blue Jean.ogg" | grep ARTIST) artist=${artist##*ARTIST=} Unfortunately, you need to do this as two steps as ${} needs a variable as the first parameter and will fail if you try and use $(command) instead. Regards, David Bolt PS. Sorry Dylan about the direct reply. Didn't notice I clicked reply-to-poster until after it had been sent :| -- Member of Team Acorn checking nodes at 63 Mnodes/s: http://www.distributed.net/ AMD 1800 1Gb WinXP/SuSE 9.1 | AMD 2400 160Mb SuSE 8.1 | AMD 2400 256Mb SuSE 9.0 AMD 1300 512Mb SuSE 9.0 | Falcon 14Mb TOS 4.02 | STE 4Mb TOS 1.62 RPC600 129Mb RISCOS 3.6 | A3010 4Mb RISCOS 3.11 | A4000 4Mb RISCOS 3.11