Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ricgamch

    awk- remove some words

    Hi people, Could anybody help me with this awk code? I've a file with this systaxis (in one single line have the whole sentence ): #cat file.xml <instance id="bass.v.bnc.001" docsrc="BNC"> <context> I went fishing for some sea <head>bass</head> . </context> </instance> <instance...
  2. ricgamch

    XML Parser

    Thanks for write Mike042, Well,i can get all the ENT from the file now #awk -f script.awk file ent1 ent2 ent3 ent4 This is my code: #cat script.awk BEGIN { FS="<ENT>" } { for (i =1; i <= NF; i++) { #print NR "->" $i; FIN=match($i,"</ENT>")...
  3. ricgamch

    XML Parser

    Hi People: Could anybody tell me how can I do this with awk? I've a file with some XML systaxis: #cat file <SENT>word1 <ENT> ent1</ENT> word2 word3 word4<ENT>ent2</ENT> </SENT> <SENT>word5 word6 word7 <ENT>ent3</ENT> word8 word9 word10<ENT>ent4</ENT></SENT> I need a script that gets all the...

Part and Inventory Search

Back
Top