[Novalug] how to change file names for CAPITALS to lower case

donjr djr1952@hotpop.com
Wed Feb 14 21:35:17 EST 2007


On Wed, 2007-02-14 at 20:49 -0500, Michael Stone wrote:
> On Wed, Feb 14, 2007 at 05:37:18PM -0500, Nino Pereira wrote:
> >I have a directory with lots of files, with file names
> >in capitals. I want to change all the file names
> >to lower case.
> 
> If you have a nifty program called "rename" on your system you can do 
> this:
> rename 'y/A-Z/a-z/' *
> 
> Mike stone

And the above is even one of the example of usage in the man page for
the program.

Interesting perl script.
  One question, those perl have a built-in "rename" function that works
on files?
  There is one line that threw{throws} me for a loop:

    elsif ($no_act or rename $was, $_)

  "no_act" is a logical controlled by the -n option,
  but "rename" is the name of the program/script.

--  
-- 
 Don E. Groves, Jr. 

$ /usr/games/fortune : Do something unusual today. Pay a bill.



More information about the Novalug mailing list