[ale] script or app to set all files to lower case
Michael B. Trausch
mike at trausch.us
Mon Aug 27 22:48:32 EDT 2007
James Taylor, on 08/27/2007 10:23 PM said:
> That worked a little better.
> It renamed all the files and folders at the immediate level, but had problems recursing.
>
> The following is an example of the errors generated.
>
> mv: cannot move `./SNAPINS/NWCADM32.DLL' to `./snapins/nwcadm32.dll': No such file or directory
>
> It looks a little like it's enumerating the file list, and once the directory has been renamed, it can't find it to write the new file name to.
>
You might need to try doing it in a for loop 20-30 times then. I am
looking for another way to enumerate the files, but not finding anything
that would be anywhere near as quick.
That said, here's one that will skip if the file name is already all
lower case:
--
Michael B. Trausch Internet Mail & Jabber: mike at trausch.us
Phone: (404) 592-5746 x1 http://www.trausch.us/
Mobile: (678) 522-7934 VoIP: 6453 at sip.trausch.us, 861384 at fwd
Pidgin 2.1.1 and plugins for Ubuntu Feisty! http://www.trausch.us/pidgin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: make-lower
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
More information about the Ale
mailing list