renameing lowercase to UPPERCASE

Mick Ohrberg micke at kc.rr.com
Sun Aug 18 03:24:15 CDT 2002


Try this:

for foo in *
do 
	mv ${foo} `echo ${foo} | tr [:lower:] [:upper:]`
done

/MickO

| -----Original Message-----
| From: owner-kclug at marauder.illiana.net 
| [mailto:owner-kclug at marauder.illiana.net] On Behalf Of rod holcomb
| Sent: Saturday, August 17, 2002 10:25 PM
| To: KC Linux Users Group
| Subject: renameing lowercase to UPPERCASE
| 
| 
| How do I  a rename files where the filename is a 8 digit 
| hexadecimal number with lower case [a-f] to the same filename 
| but using uppercase?  Note I have several hundred of these in 
| a directory?
| 
| 
| Example:    1a2b3c4d
| Rename this to  1A2B3C4D
| 
| 
| __________________________________________________
| Do You Yahoo!?
| HotJobs - Search Thousands of New Jobs
| http://www.hotjobs.com
| 
| 
| majordomo at kclug.org Enter without the quotes in body of 
| 




More information about the Kclug mailing list