From owner-freebsd-questions@FreeBSD.ORG Sat Jan 5 12:56:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 255D416A47E for ; Sat, 5 Jan 2008 12:56:41 +0000 (UTC) (envelope-from msoulier@digitaltorque.ca) Received: from mail.storm.ca (mail.storm.ca [209.87.239.66]) by mx1.freebsd.org (Postfix) with ESMTP id EDC2A13C4E5 for ; Sat, 5 Jan 2008 12:56:40 +0000 (UTC) (envelope-from msoulier@digitaltorque.ca) Received: from kanga.digitaltorque.ca (hs-216-106-102-70.storm.ca [216.106.102.70]) by mail.storm.ca (8.14.0+Sun/8.14.0) with ESMTP id m05CuPuA005870 for ; Sat, 5 Jan 2008 07:56:30 -0500 (EST) Received: from tigger.digitaltorque.ca (tigger.digitaltorque.ca [192.168.1.3]) by kanga.digitaltorque.ca (Postfix) with ESMTP id CA3D36 for ; Sat, 5 Jan 2008 07:56:41 -0500 (EST) Received: by tigger.digitaltorque.ca (Postfix, from userid 500) id AD36723DD2; Sat, 5 Jan 2008 07:56:19 -0500 (EST) Date: Sat, 5 Jan 2008 07:56:19 -0500 From: "Michael P. Soulier" To: freebsd-questions@freebsd.org Message-ID: <20080105125619.GC11545@tigger.digitaltorque.ca> Mail-Followup-To: freebsd-questions@freebsd.org References: <2b98f2f70801042134x1af4f721s877677afde7151f5@mail.gmail.com> <477F1D54.3040807@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7qSK/uQB79J36Y4o" Content-Disposition: inline In-Reply-To: <477F1D54.3040807@gmail.com> User-Agent: Mutt/1.4.2.1i Subject: Re: batch rename 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: Sat, 05 Jan 2008 12:56:41 -0000 --7qSK/uQB79J36Y4o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 05/01/08 Aryeh M. Friedman said: > This assumes tcsh: >=20 > foreach i (`ls [A-Z][a-z]*`) > mv $i `echo $i|tr 'A-Z' 'a-z'` > end sh version: for i in * do mv $i `echo $i | tr 'A-Z' 'a-z'` done Mike --=20 Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein --7qSK/uQB79J36Y4o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFHf35zKGqCc1vIvggRAsGnAJ9jZjY1dkJBetBbXNereQfXwDhJtACfXSR+ +1ZQKeb+93ShTi96eXtnwhU= =2jhg -----END PGP SIGNATURE----- --7qSK/uQB79J36Y4o--