Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE : RE: Unix filenames from capital to small letters

RE : RE: Unix filenames from capital to small letters

From: Stephane Faroult <sfaroult_at_oriolecorp.com>
Date: Wed, 30 Aug 2000 15:33:00 +0200
Message-Id: <10604.115855@fatcity.com>


DON'T. IT WOULD CHANGE THE CONTENTS OF THE FILES !  (Korn Shell)

  for FNAME in $(ls *)
  do
    fname=$(echo $FNAME | tr '[:upper:]' '[:lower:]')     if [ "$FNAME" != "$fname" ]
    then
      mv $FNAME $fname
    fi
  done

-- 
Regards,

  Stephane Faroult
  email: sfaroult_at_oriolecorp.com 
  Oriole Corporation
  Voice:  +44  (0) 7050-696-269 
  Fax:    +44  (0) 7050-696-449 
  Performance Tools & Free Scripts
------------------------------------------------------------------
http://www.oriolecorp.com, designed by Oracle DBAs for Oracle DBAs
------------------------------------------------------------------

> Subject:
> RE: Unix filenames from capital to small letters
> Date:
> Wed, 30 Aug 2000 06:08:20 -0800
> From:
> "Mecci, Shaheer (MBS)" <Shaheer.Mecci_at_mortgagefamily.com>
> Reply-To:
> ORACLE-L_at_fatcity.com
> Organization:
> Fat City Network Services, San Diego, California
> To:
> Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>
>
> try
> cat <filename> | tr [A-Z] [a-z] > <newfilename>
>
> HTH
> Shaheer Mecci
>
> -----Original Message-----
> Sent: Wednesday, August 30, 2000 9:50 AM
> To: Multiple recipients of list ORACLE-L
>
>
> 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 !!!
>
> ----------------------------------------------------------------------------
> --------
> @biy @lemu
> abiy.alemu_at_criltelecom.com <mailto:abiy.alemu_at_criltelecom.com>
> Cril Telecom Software
Received on Wed Aug 30 2000 - 08:33:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US