Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix filenames from capital to small letters
sorry abiy
too much coffee today, I guess.
If you actually need to change the file names
for filename in `ls -ltr | awk '{print $9}'`; do upperfilename=`echo $filename | tr [A-Z] [a-z]` mv ${filename} ${upperfilename} done
Shaheer.
-----Original Message-----
From: Mecci, Shaheer (MBS)
Sent: Wednesday, August 30, 2000 9:13 AM
To: 'ORACLE-L_at_fatcity.com'
Subject: RE: Unix filenames from capital to small letters
try
cat <filename> | tr [A-Z] [a-z] > <newfilename>
HTH
Shaheer Mecci
-----Original Message-----
From: ALEMU Abiy [mailto:abiy.alemu_at_criltechnology.com]
Sent: Wednesday, August 30, 2000 9:50 AM
To: Multiple recipients of list ORACLE-L
Subject: Unix filenames from capital to small letters
It might be certainly an outof subject area question but I don't know where to raise this question. It's great if someone can help me. My problem is that I have a lot of files in a directory whose names are all in capital letters and I would like to change them all in small letters. Is there any one line UNIX command to do this ? Please help !!!
-- Author: ALEMU Abiy INET: abiy.alemu_at_criltechnology.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing ListsReceived on Wed Aug 30 2000 - 08:20:02 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).