From owner-freebsd-questions Thu Mar 29 21:50:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 8079337B71B for ; Thu, 29 Mar 2001 21:50:16 -0800 (PST) (envelope-from michaelnottebrock@gmx.net) Received: (qmail 30944 invoked by uid 0); 30 Mar 2001 05:50:14 -0000 Received: from pd4b9ee80.dip.t-dialin.net (HELO lofizwei) (212.185.238.128) by mail.gmx.net (mp016-rz3) with SMTP; 30 Mar 2001 05:50:14 -0000 Message-ID: <01ce01c0b8dd$6a1de080$0508a8c0@lofi.dyndns.org> From: "Michael Nottebrock" To: , References: <2748aa2709c1.2709c12748aa@mbox.com.au> Subject: Re: Renaming multiple files to lowercase Date: Fri, 30 Mar 2001 07:51:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----- Original Message ----- From: Subject: Renaming multiple files to lowercase > Hiya all, > > How do I quickly and easily [...] > mv *HTM to *htm A bit of one-line-script-magic will do the trick. Issue for i in *.HTM; do mv $i `basename $i .HTM`.htm; done Greetings, Michael Nottebrock To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message