| Author |
Changing case of file names
|
|
| Preserved Killick 2005-04-27, 4:00 pm |
|
Just wondering if anyone had some quick tools for converting filenames
to lower case. Another useful tool would be one that changes all
letters but the first to lc.
thanx,
pk
| |
| Jeff Godfrey 2005-04-27, 4:00 pm |
|
"Preserved Killick" <johnvhite@texoma.net> wrote in message
news:1114608120.187029.122930@l41g2000cwc.googlegroups.com...
>
> Just wondering if anyone had some quick tools for converting filenames
> to lower case. Another useful tool would be one that changes all
> letters but the first to lc.
Like this?
% set fName "MYFILENAME.TXT"
MYFILENAME.TXT
(bin) 2 %
(bin) 2 % string tolower $fName
myfilename.txt
(bin) 3 % string totitle $fName
Myfilename.txt
(bin) 4 %
Jeff
| |
| Preserved Killick 2005-04-27, 4:00 pm |
| Yep, was unaware of totitle. No excuse for tolower though. (Mr Duh now
remembers having read about it, but has regexp on the brain.) I'll
throw in a glob and file rename and get it fixed.
Thanks
|
|
|
|