[LUGOS] Translate to upper case

Franc Farazin franc.farazin at hermes.si
Fri Sep 29 17:26:57 CEST 2006


Meni tole ne dela (SunOS 5.8, ksh)...

/tmp# sed -e 's/Computer:\\1</`echo $1 | tr 'a-z' 'A-Z'`/' test.xml
<Name>Computer:vm01.domain.com</Name>
<Name>Computer:vm02.domain.com</Name>


-----Original Message-----
From: lugos-list-bounces+franc.farazin=hermes.si at lugos.si
[mailto:lugos-list-bounces+franc.farazin=hermes.si at lugos.si] On Behalf
Of Nejc Skoberne
Sent: 29. september 2006 16:47
To: Glavni dopisni seznam LUGOSa
Subject: Re: [LUGOS] Translate to upper case


> INPUT:
> ============
> .
> <Name>Computer:vm01.domain.com</Name>
> .
> 
> OUTPUT:
> ==========
> .
> <Name>Computer:VM01.DOMAIN.COM</Name>
> .

Meni tole dela:

sed -e 's/Computer:\\1</`echo $1 | tr 'a-z' 'A-Z'`/' INPUT_FILE >
OUTPUT_FILE

LP, Nejc


More information about the lugos-list mailing list