*BSD News Article 83230


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!esmeralda.access.net.au!news.netspace.net.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!newsfeed.internetmci.com!www.facs.federated-fds.com!news.ececs.uc.edu!news.kei.com!news.mathworks.com!uunet!in3.uu.net!news.u.washington.edu!root
From: "Steven G. Kargl" <kargl@apl.washington.edu>
Newsgroups: comp.infosystems.www.servers.unix,comp.unix.bsd.freebsd.misc,comp.unix.programmer,comp.unix.questions
Subject: Re: Help Need a UTIL for Case Sensitive Files.
Date: Tue, 19 Nov 1996 20:27:49 -0800
Organization: University of Washington
Lines: 42
Message-ID: <329288C5.41C67EA6@apl.washington.edu>
References: <01bbd5d3$54b9d060$86629dcc@big-one> <Pine.LNX.3.91.961119142024.2275A-100000@boqueron.vnet.es> <gora.848460776@pv7402.vincent.iastate.edu>
NNTP-Posting-Host: ppp-C3.apl.washington.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.2-960801-SNAP i386)
To: Gora Mohanty <gora@iastate.edu>
Xref: euryale.cc.adfa.oz.au comp.infosystems.www.servers.unix:22127 comp.unix.bsd.freebsd.misc:31284 comp.unix.programmer:46582 comp.unix.questions:91597

Gora Mohanty wrote:
> 
> In <Pine.LNX.3.91.961119142024.2275A-100000@boqueron.vnet.es> Francisco Rodrigo <frer@vnet.es> writes:
> 
> [Mucho snippage]
> 
> >Just do this:
> 
> >cd /your/directory
> >for a in *; do mv $a `echo $a | tr '[:upper:]' '[:lower:]'`; done
>                                       ^^^^^^^^^^^^^^^^^^^
> 
> Huh? What version of tr uses that syntax to convert from uppercase to
> lowercase?
>

man tr

[snip]

      [:class:]  Represents all characters belonging to the defined
character
                class.  Class names are:

                alnum     <alphanumeric characters>
                alpha     <alphabetic characters>
                cntrl     <control characters>
                digit     <numeric characters>
                graph     <graphic characters>
                lower     <lower-case alphabetic characters>
                print     <printable characters>
                punct     <punctuation characters>
                space     <space characters>
                upper     <upper-case characters>
                xdigit    <hexadecimal characters>


-- 
Steve

finger -l kargl@troutmask.apl.washington.edu
http://troutmask.apl.washington.edu/~kargl/sgk.html