Can you help me with this AWK problem?

expired domain names
Robbert!!! asked:

I’m trying to seperate these lines with AWK:
….
To register the DNS host (A) resource records using the specific DNS domain name and IP addresses for this adapter, contact your DNS server or network systems administrator.”

30-9-200911:02:19BROWSERInformationNone8033N/AMSDNAAThe browser has forced an election on network \Device\NetBT_Tcpip_{F128EF84-BFD2-42DA-B395-8D3119AAE48E} because a master browser was stopped.

30-9-200911:02:15DhcpErrorNone1000N/AMSDNAAYour computer has lost the lease to its IP address 192.168.192.17 on the Network Card with network address 000475D3B53F.

30-9-200911:02:15DhcpWarningNone1003N/AMSDNAA”Your computer was not able to renew its address from the network (from the DHCP Server) for the Network Card with network address 000475D3B53F. The following error occurred:

The semaphore timeout period has expired. . Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.”

30-9-200911:01:39DhcpWarningNone1003N/AMSDNAA”Your computer was not able to renew its address from the network (from the DHCP Server) for the Network Card with network address 000475D3B53F. The following error occurred:

The semaphore timeout period has expired. . Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.”

30-9-200911:00:06DhcpWarningNone1003N/AMSDNAA”Your computer was not able to renew its address from the network (from the DHCP Server) for the Network Card with network address 000475D3B53F. The following error occurred:

The semaphore timeout period has expired. . Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.”
….
Every new line starts with a date. How can i seperate these lines?






One Response to 'Can you help me with this AWK problem?'

  1. forgiven490 - May 9th, 2010 at 1:04 am

    And they laugh at my awk book…

    awk ‘BEGIN {RS=”"} /^[0-9]+-[0-9]-[0-9]/ { print “***” $0; while (getline && $0 !~ /^[0-9]+-[0-9]-[0-9]/) print $0}


Leave a Reply