I have a huge file, I need to two things from this file. I need to know the IP address or the hostname and second thing is the date&time.
The file looks like this and I need to get my data from this...
Trying...
Connected to 204.109.172.117.
Escape character is '^]'.
Fri Oct 31 16:32:49 2008
Connection closed.
Trying...
Connected to meph1.xrb.com
Escape character is '^]'.
Fri Oct 31 13:38:31 2008
Connection closed.
Trying...
Connected to xrbcp1.xrb.com
Escape character is '^]'.
Thu Feb 26 11:23:27 2009
Connection closed.
Trying...
Connected to xrbcp2.xrb.com.
Escape character is '^]'.
Thu Feb 26 11:23:40 2009
Connection closed.
Trying...
Connected to 204.109.172.118.
Escape character is '^]'.
Fri Oct 31 16:32:49 2008
Connection closed.
I did grep -E and it's sort of working but not there 100%.