From owner-freebsd-questions@FreeBSD.ORG Fri Nov 25 14:54:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 349EE16A41F for ; Fri, 25 Nov 2005 14:54:48 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D9C143D62 for ; Fri, 25 Nov 2005 14:54:47 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 15058 invoked from network); 25 Nov 2005 14:54:47 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 25 Nov 2005 14:54:46 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 6084C2841D; Fri, 25 Nov 2005 09:54:46 -0500 (EST) Sender: lowell@be-well.ilk.org To: Dave References: <004901c5e237$69776c40$0900a8c0@satellite> <4464r434w0.fsf@be-well.ilk.org> <002601c5f045$2786c300$0900a8c0@satellite> From: Lowell Gilbert Date: 25 Nov 2005 09:54:46 -0500 In-Reply-To: <002601c5f045$2786c300$0900a8c0@satellite> Message-ID: <44d5kon5ft.fsf@be-well.ilk.org> Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: abcde ripping to mp3 and ogg using different folders X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2005 14:54:48 -0000 Don't top-post, please. "Dave" 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