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...
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>")...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.