Hi All,
I am looking for a solution for when a pattern is repeated in the same line, that it only recognises the first, and then allows me too print fields too my liking for eg
cat file | awk '{for (e=1;e<NF;e++){if (match($e,"[n,d][v,g,s,f][0,2]|,[n,d][v,g,s,f][0,2]."){if($2==A||....etc
ps: that the pattern is in different fields.
Thanks in advance
Chris
I am looking for a solution for when a pattern is repeated in the same line, that it only recognises the first, and then allows me too print fields too my liking for eg
cat file | awk '{for (e=1;e<NF;e++){if (match($e,"[n,d][v,g,s,f][0,2]|,[n,d][v,g,s,f][0,2]."){if($2==A||....etc
ps: that the pattern is in different fields.
Thanks in advance
Chris