Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change file ext to lower case 1

Status
Not open for further replies.

JimIssI

Programmer
Nov 28, 2000
32
0
0
US
Hi, I have several thousand files with an uppercase file extension that need to be imported by an app that only recognizes lower case extensions. MSDOS provides a switch /L for lower case. Does a similar switch exist in SCO or does anyone have an idea on how to handle the problem? The files reside on a CD to be copied onto a SCO box and then processed by a compiled app. The files are .JPG and need to be .jpg for the app. to process.

Any help is appreciated.

Jim
 
Jim

since you mentioned that the files are on a cd you can use a parameter when you mount it to transform the file names to lower case.

eg
mount -r -f ISO9660,lower /dev/cd0 /cdrom

otherwise you can write a script using tr to transform the filenames/extensions

if you need help with the script reply here

stan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top