Hi, I'm having data like this:
uniqname1.foo.bar IN A 10.0.0.1
uniqname1.foo.bar IN TXT "abcdefg"
uniqname2.foo.bar IN A 10.0.0.2
uniqname2.foo.bar IN TXT "xyz"
uniqname3.foo.bar IN A 10.0.0.3
uniqname4.foo.bar IN A 10.0.0.4`
You get the picture, not every host has a TXT, some do. I try to get a regex which would print out 3 values for hosts that have a TXT, in that case the output would be:
uniqname1.foo.bar 10.0.0.1 abcdefg
uniqname2.foo.bar 10.0.0.2 xyz`