From owner-freebsd-questions Wed Dec 30 14:15:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA07257 for freebsd-questions-outgoing; Wed, 30 Dec 1998 14:15:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from finsco.com (ns1.finsco.com [205.241.191.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA07242 for ; Wed, 30 Dec 1998 14:15:37 -0800 (PST) (envelope-from billh@finsco.com) Received: from finsco.com by finsco.com (SMI-8.6/SMI-SVR4) id QAA09119; Wed, 30 Dec 1998 16:12:14 -0600 Message-ID: <368AA5C5.4A8FAD46@finsco.com> Date: Wed, 30 Dec 1998 16:14:29 -0600 From: Bill Hamilton X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Patrick Seal CC: freebsd-questions@FreeBSD.ORG Subject: Re: lowercase filenames References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You could write an awk script, making use of the tolower function. It could use mv -i or whatever. Patrick Seal wrote: > > I have a directory with filenames like: > FOO.xxx > Bar.yyy > hex.zzz > > What would be the easiest way to convert them to lowercase (and possibly > checking for existing lowercase counterparts before overwriting them) > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message