[Gllug] Finding files in directories recursively

- Tethys tethys at gmail.com
Wed Jun 25 10:48:04 UTC 2008

On Wed, Jun 25, 2008 at 11:03 AM, Jon Dye <jon at pecorous.co.uk> wrote:

> Does anyone have a suggestion as to how I can do what I want?

find . -type d -print0 | xargs -I {} -0 sh -c "find \"{}\" -maxdepth 1
-type f -name '*.mp3' -print0 | xargs -0 mp3gain /dev/null"

It's clumsy, but it works.

Obligatory plug: Ogg Vorbis -- you know it makes sense :-)


Perl is like vise grips. You can do anything with it but it is the
wrong tool for every job. -- Bruce Eckel
Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list