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: sed/Solaris case insensitive search

Re: sed/Solaris case insensitive search

From: Ranko Mosic <ranko.mosic_at_gmail.com>
Date: Fri, 30 Jun 2006 14:59:46 -0400
Message-ID: <367369f10606301159q634e67c4k167a57b4ad1fefd6@mail.gmail.com>


You the man Dimitre. This works !!! Thanks very mych.

Regard, Ranko.

On 6/30/06, Radoulov, Dimitre <cichomitiko_at_gmail.com> wrote:
>
> > I need to modify certain file using sed. Pattern can be both upper/lower
> > case.
> > Sun Solaris sed doesn't have /I switch that GNU sed has.
> > Does anybody know how to perform sed insensitive search ?
>
> $ cat text1
> UNIX
> uNiX
> $ sed s/[Uu][Nn][Ii][Xx]/Solaris/ text1
> Solaris
> Solaris
>
> $ tr "[:lower:]" "[:upper:]" < text1 | sed s/UNIX/Solaris/
> Solaris
> Solaris
>
> $ sed -e s/UNIX/Solaris/ -e s/uNiX/Solaris/ text1
> Solaris
> Solaris
>
>
> Regards
> Dimitre
>
>
>

-- 
Regards,
Ranko Mosic
Contract Senior Oracle DBA
B. Eng, Oracle 10g, 9i Certified Database Professional
Phone: 416-450-2785
email: mosicr_at_rogers.com
http://ca.geocities.com/mosicr@rogers.com/ContractSeniorOracleDBARankoMosicMain.html

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Jun 30 2006 - 13:59:46 CDT

Original text of this message

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