At Wed, 30 Jul 2003 21:02:29 , Voytek Eymont wrote: > what can I use to recursively change file names/extension to all lower case ? > I have some files and/directories like: > > I tried rename few times with little effect: > > [EMAIL PROTECTED] photos]# rename .JPG *.jpg > [EMAIL PROTECTED] photos]# ls > atomfactory1.JPG makitapage03-s.jpg makitapage10-s.jpg > atomfactory2.JPG makitapage04-s.jpg makitapage11-s.jpg > atomfactory3.JPG makitapage05-s.jpg makitapage12-450.jpg > makitapage01-450.jpg makitapage06-s.jpg makitapage12-s.jpg > makitapage01-n.jpg makitapage07-s.jpg shopfront.jpg
"rename" takes a perl expression that modifies $_. ".JPG" is not a particular useful perl expression. try: rename 's/\.JPG$/.jpg/' *.jpg i note the rename manpage has an example which translates uppercase filenames to lowercase. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
