i have the long file more than one ns and www and mx in the line like .
i need the first ns record and first www and first mx from line .
the records are seperated with tthe ; i am try ing in awk scripting not getiing the solution.
NS,ns2.fastpark.net,216.8.177.29,windsor,on,can,-83.017,42.3;NS,ns1.fastpark.net,206.130.11.197,toronto,on,can,-79.443,43.751;WWW,www.0--00--0.com,216.8.179.24,windsor,on,can,-83.017,42.3
I need out put like these
NS,ns2.fastpark.net,216.8.177.29,windsor,on,can,-83.017,42.3;
WWW,www.0--00--0.com,216.8.179.24,windsor,on,can,-83.017,42.3
WW,www.0--5.com,63.251.171.80,vancouver,wa,usa,-122.728,45.681;
MX,m1.dnsix.com,63.251.171.169,vancouver,wa,usa,-122.728,45.681