Date: Sat, 05 Jan 2008 01:01:56 -0500 From: "Aryeh M. Friedman" <aryeh.friedman@gmail.com> To: Jeff Laine <wtf.jlaine@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: batch rename Message-ID: <477F1D54.3040807@gmail.com> In-Reply-To: <2b98f2f70801042134x1af4f721s877677afde7151f5@mail.gmail.com> References: <2b98f2f70801042134x1af4f721s877677afde7151f5@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeff Laine wrote: > Hi to all. > > My goal is to rename several files in such a way as to decapitalize > starting letters in their names. The solution seems to be simple > but I'm stuck. What should I use? awk/sed or write some > shell-script? This assumes tcsh: foreach i (`ls [A-Z][a-z]*`) mv $i `echo $i|tr 'A-Z' 'a-z'` end > > > TIA > - -- Aryeh M. Friedman FloSoft Systems, Java Developer Tools http://www.flosoft-systems.com Developer, not business, friendly. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHfx1UjRvRjGmHRgQRAi7iAJ4kFwUQRj18O1DSP6D8KrO/0sOzrwCfZkgv zutJcCUMAlFfjpqhs5aF/Vw= =wuvQ -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?477F1D54.3040807>