Site Statistics
 
Threads: 3,853
Posts: 17,029
Members: 2,895
Users Online: 13
Newest Member: yhangjoy


Go Back   PC101 > PC Software > UNIX / Linux

UNIX / Linux Linux is the UNIX-like operating system that provides personal computer users a FREE or very low-cost operating system.


Reply
 
LinkBack Thread Tools Display Modes
Old 10-04-2006, 04:56 AM   #1
Junior Member
 
Join Date: Oct 2006
Posts: 1
Rep Power: 0 nive5304 is on a distinguished road
Angry Regardin SedScript and i need very urgently

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
-Rajini
nive5304 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:56 PM.

Powered by vBulletin Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5