Date: Sat, 5 Jan 2008 07:56:19 -0500 From: "Michael P. Soulier" <msoulier@digitaltorque.ca> To: freebsd-questions@freebsd.org Subject: Re: batch rename Message-ID: <20080105125619.GC11545@tigger.digitaltorque.ca> In-Reply-To: <477F1D54.3040807@gmail.com> References: <2b98f2f70801042134x1af4f721s877677afde7151f5@mail.gmail.com> <477F1D54.3040807@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 05/01/08 Aryeh M. Friedman said:
> This assumes tcsh:
>
> 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
--
Michael P. Soulier <msoulier@digitaltorque.ca>
"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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFHf35zKGqCc1vIvggRAsGnAJ9jZjY1dkJBetBbXNereQfXwDhJtACfXSR+
+1ZQKeb+93ShTi96eXtnwhU=
=2jhg
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080105125619.GC11545>
