B
branigan
This is output from a for command that I am using. My problem is I do not
want the name of the name server with its address listed after each lookup.
With the information below, how could I pull only the lines beginning with
name: and its corrasponding address? Appreciate your help...
-snip-
Server: gcband02.mycomp.com
Address: 10.10.66.66
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: caestc0490.mycomp.com
Address: 10.40.66.99
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: caestc0467.mycomp.com
Address: 10.40.67.240
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: cablp4j595.mycomp.com
Address: 10.40.8.186
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: fltrain08.mycomp.com
Address: 10.50.0.248
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: au-nwf-nwped
Address: 10.50.1.232
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: sulfuricsuper.mycomp.com
Address: 10.50.2.236
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: afi-ww2
Address: 10.50.2.252
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: mycomp-ygfn3aw3hgs.mycomp.com
Address: 10.50.3.210
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: nwfafisupervisors.mycomp.com
Address: 10.50.3.232
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: kfd_flot_serv2
Address: 10.55.0.138
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: kin-flot-serv1
Address: 10.55.0.252
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: aukinr02.mycomp.com
Address: 10.55.1.247
Server: gcband02.mycomp.com
Address: 10.10.66.66
want the name of the name server with its address listed after each lookup.
With the information below, how could I pull only the lines beginning with
name: and its corrasponding address? Appreciate your help...
-snip-
Server: gcband02.mycomp.com
Address: 10.10.66.66
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: caestc0490.mycomp.com
Address: 10.40.66.99
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: caestc0467.mycomp.com
Address: 10.40.67.240
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: cablp4j595.mycomp.com
Address: 10.40.8.186
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: fltrain08.mycomp.com
Address: 10.50.0.248
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: au-nwf-nwped
Address: 10.50.1.232
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: sulfuricsuper.mycomp.com
Address: 10.50.2.236
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: afi-ww2
Address: 10.50.2.252
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: mycomp-ygfn3aw3hgs.mycomp.com
Address: 10.50.3.210
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: nwfafisupervisors.mycomp.com
Address: 10.50.3.232
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: kfd_flot_serv2
Address: 10.55.0.138
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: kin-flot-serv1
Address: 10.55.0.252
Server: gcband02.mycomp.com
Address: 10.10.66.66
Name: aukinr02.mycomp.com
Address: 10.55.1.247
Server: gcband02.mycomp.com
Address: 10.10.66.66