John, I just whipped up the following simplistic Perl script. Put it in the directory in which the JPG files live, give it a name like renameJPG.pl and then
chmod 755 renameJPG.pl Then to run it, type ./renameJPG.pl and it will rename all files ending with JPG. By the way, this will NOT work on FAT32 filesystem directories. Let me know if you need it to and I can modify it. Miark ----------The following line must be the FIRST line of the script. #!/usr/bin/perl opendir(PINS_DIR, "."); @dir = readdir(PINS_DIR); closedir(PINS_DIR); foreach (@dir) { next if !m/JPG$/; $before = $_; s/JPG$/jpg/; $after = $_; print "Renaming $before to $after...\n"; system("mv $before $after"); } print "\nAll files in this directory have been renamed.\n\n"; ----------The previous line is the LAST line of the script John Richard Smith <[EMAIL PROTECTED]> saith: > For reasons I need not go into, I transfer *.JPG files across from > Windblows to Mandrake and work on them in gimp,and > when I'm finished I have a montage of prints I wish to assemble > as a composite. > > I've hit a snag. > > Winblows names it's files in higher case. > Montage(the programme, part of image magic) seems only willing > to work with lowercase named files. There are too many to manually > retype. > > How can I convert windblows named *.JPG files to *.jpg named > files on the command line ? > > John > > -- > John Richard Smith > [EMAIL PROTECTED] > > > > >
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com