Skip site navigation (1)Skip section navigation (2)
Date:      25 Nov 2005 09:54:46 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Dave <dmehler26@woh.rr.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: abcde ripping to mp3 and ogg using different folders
Message-ID:  <44d5kon5ft.fsf@be-well.ilk.org>
In-Reply-To: <002601c5f045$2786c300$0900a8c0@satellite>
References:  <004901c5e237$69776c40$0900a8c0@satellite> <4464r434w0.fsf@be-well.ilk.org> <002601c5f045$2786c300$0900a8c0@satellite>

next in thread | previous in thread | raw e-mail | index | archive | help
Don't top-post, please.

"Dave" <dmehler26@woh.rr.com> writes:

> Hi,
>     What abcde does is first rips the files to wav then encodes them
> to the indicated format. What i've got mine doing is encoding to both
> .mp3 and .ogg, now it places the files in the same folder, only with
> different extensions .mp3 and .ogg respectively. What i'd like is to
> keep the mp3's where they are and to create the same folder as the
> mp3's are in with a .ogg extension and put the .ogg files in
> there. I'm a bit new to shell scripting, can you get me pointed in the
> right direction?

Off the top of my head:

cd $targetDirectory
mkdir -p ../ogg
for fil in *.ogg ; do mv $fil ../ogg/. ; done



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44d5kon5ft.fsf>