Not sure the most effient way to do this. Bash seems the easiest, I have a start on the date.
set -A mAMon N/A Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
sed -e 's/-/ /g' -e 's/\(.*:..\).\{4\}/\1/' -e 's/\.\([0-9]\)/ \1/g' -e 's/\./ /2' inp_file
I have figiured out how to extract columns, but not sure how to convert
This is what I have…
Code:
NEWDNS 04-Jun-2011 06:00:59.762 10.220.136.217 crl.verisign.com
This is what I need…. Change date, remove mil seconds, remove periods in the ips and remove the last dot in a url.
Code:
NEWDNS 2011-06-04 06:00:59 10 220 136 217 crl.verisign com
Thanks
A perl way to do it:
output: