Hi again, The perl script 'chcase' I mentioned in my previous posts will rename folders recursively.
Pablo -------------------------------------------------------- Pablo Vitoria Garcia Dpto. Química Inorgánica, Facultad de Ciencias Universidad del País Vasco (UPV/EHU) Aptdo. 644 48080 Bilbao (Bizkaia) Tfno. 94 6015992 Fax. 94 4648500 ----- Original Message ----- From: "Charlie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 13, 2004 5:07 PM Subject: Re: [newbie] rename multiple folders | On Monday 12 January 2004 22:29, Ronald J. Hall wrote: | > On Monday 12 January 2004 11:38 pm, Charlie wrote: | > ->I have a bunch of folders(several hundred) that I copied over from my | > Win2k ->partition that I want to rename. Windows names them using a capital | > letter ->and I want to rename them all to all lower case. | > -> | > ->Example: rename Documents to documents | > -> | > ->Is there an easy way to do this? I don't want to do all these one at a | > time. -> | > ->Thanks, | > | > Hi Charlie. Just cp the files to where you need them, then while you are in | > that directory from a shell, type: | > | > for i in *[A-Z]* | > | > Now you at a > prompt. Type | > | > do mv $i `echo $i |tr "A-Z" "a-z"` (note those are ` not ' , located below | > your tilde key) | > | > and finally: | > | > done | > | | Well this seems to have done the first level folders ok, but did not rename | rename any of the subfolders. | | Is there a way to make this work recursively? | | ---------------------------------------------------------------------------- ---- | Want to buy your Pack or Services from MandrakeSoft? | Go to http://www.mandrakestore.com |
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com