Hi guys... I've been trying to do this for ages. Maybe you can help.
I have log files like the examples below and I have grepped out certain lines from the files so that I can get an idea of who is logging on and how. So now I have the information in a new file but it is now in a different order according to what was grepped first and last and I'd like to sort the data according to the date and time. Which is in the format 27-May-2007 00:43:18.28.
The sort command didn't work, has anyone got any ideas?
27-May-2007 00:43:18.28 tcp_local conversion E 9
sdf@gcvbcb.co.uk rfc822;ambury@xvxv.xcv.ie
ambury@xcvxv.sds.ie /queue/queue/conversion/ZZfcbcb36o5Q5.00<00bccbc38390$92cd2fbe@Erick> mailsrv pc-146-205-47-190.cm.vtr.net ([255.47.8.146]
27-May-2007 00:43:18.28 > From: "gregeg Meskimen" <vzxvczx@xzcvz.co.uk>
27-May-2007 00:43:18.28 > X-Mailer: Microsoft Outlook, Build 10.0.6626
27-May-2007 00:43:17.93 tcp_local conversion E 2
vxcv@xcvxo.com rfc822;xghg@xhghvx.xgjx.ie
vxv@xghj.ghjx.ie /queue/queue/conversion/ZZf0z5x36o5Q4.00 <0019gjgcvbf0$0@f4a04cbcb2b> mailsrv part-e489ghjg52.cpe.polou.com ([200.255.101.255])
27-May-2007 00:43:17.93 > From: "bLASD Booster" <vxcv@xvx.com>
27-May-2007 00:43:17.93 > X-Mailer: Microsoft Outlook Express %OE_VERSION%OE_SUBVERSION