The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Processing a log file based on date/time input and the date/time on the log file primp Shell Programming and Scripting 4 03-16-2008 11:23 AM
Date Sorting LiquidChild Shell Programming and Scripting 14 05-29-2007 08:34 AM
Sorting a date coulumn rinku11 Shell Programming and Scripting 2 05-15-2007 08:51 PM
date sorting nmilella UNIX for Dummies Questions & Answers 3 07-11-2006 05:11 AM
sorting on date Duckman UNIX for Dummies Questions & Answers 6 03-29-2001 05:32 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-09-2007
padmundo padmundo is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 2
Sorting by date and time

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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0