Unix/Linux

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Regarding SedScript in unix and i need very urgently

    0 answers - 807 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    Actually i need to convert a word called Terms to terms. The following is an Element tag(user-defined tag) which has got Text tag in a xml file.
    <ELEMENT id="E111">
    <TEXT countrynumber="*" languageid="*">Terms </TEXT>
    </ELEMENT>
    so using SedScript i need to check if the element id is "E111" and countrynumber="*" and languageId="*", then change the word Terms to terms
    so i have written the sedscript like
    #change element E111 replace "{Terms} - {terms}"
    /<ELEMENT [ ]*id[ ]*=[ ]*"E111"/,/<\/ELEMENT/ {
    s/Terms/terms/g
    }
    but in the above sedscript, i don't know how to include the condition for countrynumber="*" and languageId="*"
    Can anyone help me
    And this is very urgent
    Regards

Re: Regarding SedScript in unix and i need very urgently


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Unix/Linux"

EMSDN.COM