From owner-freebsd-newbies@FreeBSD.ORG Fri Mar 25 09:07:23 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 194DD16A4CE for ; Fri, 25 Mar 2005 09:07:23 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE67743D3F for ; Fri, 25 Mar 2005 09:07:22 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc91.asp.att.net (sccimhc91) with ESMTP id <20050325090721i9100t8pine>; Fri, 25 Mar 2005 09:07:22 +0000 Message-ID: <4243D4C9.4040403@nbritton.org> Date: Fri, 25 Mar 2005 03:07:21 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 1.0 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Freebsd-Newbies@Freebsd. Org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: batch conversion of files to lower case X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 09:07:23 -0000 Posting this here so I can find it next time I need. Converts files in a directory to lower-case, change "*.TTF" to whatever you want to find / change: find ./ -name "*.TTF" -exec perl -e 'rename($_, lc) || warn "$_: $!\n" for @ARGV' {} \; Alternatively you can use "find ./ -type f" to change ALL files in the current working directory. Adapted from Robin's post on this page: http://perlmonks.thepen.com/131861.html