It would be nice to be able to sort data like this by date:

Oct 21 00:30:01 ip2 newsyslog[13756]: logfile turned over
Jan 18 02:50:11 ip2 com.apple.launchd.peruser.502[710]

There could be a sort command option that tells sort to make a best effort to identify date fields, parse them as a date, then sort by date. For cases where that doesn't work, then there could be argument that allows the user to specify how to find the date text in the input.

Thanks!

Dave


Reply via email to