[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script to convert filename to lowercase



On Fri, May 25, 2001 at 01:36:04PM +0000, Darryl Röthering wrote:
> Can one of you gurus quickly help me with a script? I have a directory with 
> several thousand files named inconsistently with a mix of uppercase and 
> lowercase. I need to rationalize these to be named with all lowercase. I 
> know you guys will have a dozen ways to do this.

there is an example in bash faq.
but i think tcsh is faster, because there's no need of pipe and
other spawned processes:

foreach file (`ls -1`)
mv -f $file $file:al
end

ciao.
andrea



Reply to: