From owner-freebsd-questions Tue Jan 9 13: 7:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail5.sc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A72237B401 for ; Tue, 9 Jan 2001 13:07:27 -0800 (PST) Received: from sc.rr.com ([24.88.102.101]) by mail5.sc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Tue, 9 Jan 2001 16:07:26 -0500 Received: (from dmaddox@localhost) by sc.rr.com (8.11.1/8.11.1) id f09L88911799; Tue, 9 Jan 2001 16:08:08 -0500 (EST) (envelope-from dmaddox) Date: Tue, 9 Jan 2001 16:08:07 -0500 From: "Donald J . Maddox" To: Norbert Koch Cc: freebsd-questions@freebsd.org Subject: Re: A simple shell question, How do i rename multiple files? Message-ID: <20010109160807.A11765@cae88-102-101.sc.rr.com> Reply-To: dmaddox@sc.rr.com Mail-Followup-To: Norbert Koch , freebsd-questions@freebsd.org References: <003101c07a95$b24117a0$46010a0a@sysadmininc.com> <20010109155734.A11544@cae88-102-101.sc.rr.com> <20010109160146.A11647@cae88-102-101.sc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from nk@LF.net on Tue, Jan 09, 2001 at 10:04:49PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jan 09, 2001 at 10:04:49PM +0100, Norbert Koch wrote: > "Donald J . Maddox" writes: > > > On Tue, Jan 09, 2001 at 03:57:34PM -0500, Donald J . Maddox wrote: > >> #!/bin/sh > >> for i in * > > ^ Obviously, this should be '*.xxx' :/ > >> do > >> move $i ${i%.xxx} > >> done > > s/move/mv Right you are... Gotta learn to type slower :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message