Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!EU.net!news2.EUnet.fr!newsbr.eunet.fr!usenet From: Frederic.Marand@osinet.fr (Frederic MARAND) 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: Thu, 21 Nov 1996 18:32:14 GMT Organization: Groupe SEDI / Agorus SA / OSI SARL Lines: 25 Message-ID: <572ap9$ilc@newsbr.eunet.fr> References: <01bbd5d3$54b9d060$86629dcc@big-one> <Pine.LNX.3.91.961119142024.2275A-100000@boqueron.vnet.es> NNTP-Posting-Host: 193.107.196.155 X-Newsreader: Forte Free Agent 1.0.82 Xref: euryale.cc.adfa.oz.au comp.infosystems.www.servers.unix:22209 comp.unix.bsd.freebsd.misc:31396 comp.unix.programmer:46706 comp.unix.questions:91763 Francisco Rodrigo <frer@vnet.es> wrote: >Hello. >On 19 Nov 1996, Erotic Delirium wrote: >> does anyone have a utility that will go through and change filenames & >> directories from uppercase to lower case. I need to change everything in a >> certian directory including subdirs to lowercase and its about 9000 files. >Just do this: >cd /your/directory >for a in *; do mv $a `echo $a | tr '[:upper:]' '[:lower:]'`; done >This works fine for files. I have never had the need for a recursive >traversal of a directory tree. Comments are welcome. This person should probably add a "-a" to the "tr" command if necessary, to force use of the ASCII collating sequence : on systems with NLS, straight range translation sometimes produces strange (though perfectly logical) results ------------------------- Frederic G. MARAND Agorus SA / OSI SARL Frederic.Marand@osinet.fr -------------------------