Results 1 to 1 of 1
awk '/Address:/ {print $2}' NSLOOKUP_OUTPUT
This prints out 2 addresses, 1 for each line in the file which contains "Address:"
How do I get it to print out the address ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-20-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 11
awk - second occurance
awk '/Address:/ {print $2}' NSLOOKUP_OUTPUT
This prints out 2 addresses, 1 for each line in the file which contains "Address:"
How do I get it to print out the address only for the second line?


Reply With Quote
