I have no fxargs executable though :)

> -----Original Message-----
> From: Volker Kuhlmann [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 13 August 2003 4:19 p.m.
> To: [EMAIL PROTECTED]
> Subject: Re: Script help - upper to lower case filenames
> 
> 
> > Hi all, I need to recursively rename a bunch of uppercase files to 
> > lowercase files. This sounds like something that a tool may 
> exist for, 
> > or a simple script would do. Any ideas on the easiest way 
> to to this?
> 
> Yes, ready to roll. Personally I'd type
> 
>   cd somedir
>   fxargs --FILE -- Ren -L
> 
> Obviously, any resulting name collisions result in 
> overwritten files. This is implied by the question, and the 
> operation of the mv command.
> 
> Most of the respondents need to read the question again - it 
> said RECURSIVE.
> 
> > for f in `ls`
> > do
> > LC_FILENAME=`echo $f | tr 'A-Z' 'a-z'`
> > mv $f  $LC_FILENAME
> > done
> 
> I sincerely hope the OSTC does do some better teaching than 
> this kind of DANGEROUSLY BAD CODE.
> 
> Volker
> 
> -- 
> Volker Kuhlmann                       is possibly list0570 
> with the domain in header
> http://volker.dnsalias.net/           Please do not CC list 
> postings to me.
> 

Reply via email to