You are not logged in.

#1 2009-05-06 21:56:52

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

[Solved]flac2mp3 command help-recursively convert files

I'm using the method on this wiki page to convert my music to .mp3. My music is organized into directories like so: /media/PASSFAT32/music/artist/albums/songs. Is there a way that I can run this so I converts all of the files at once, instead of having to cd to each directory individually?

Last edited by soupcan (2009-05-07 00:19:48)

Offline

#2 2009-05-06 22:05:07

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [Solved]flac2mp3 command help-recursively convert files

You can make it recursive by replacing the first line with:

IFS="
"
for a in $(find -iname '*.flac')

Offline

#3 2009-05-07 00:18:59

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: [Solved]flac2mp3 command help-recursively convert files

Procyon wrote:

You can make it recursive by replacing the first line with:

IFS="
"
for a in $(find -iname '*.flac')

Thanks, exactly what I wanted.

Offline

Board footer

Powered by FluxBB