Need to sort logs by field in the following format "YY Month DD HH:MM:SS"
Another newb question:
I've got a bunch of logs that I want sorted by the timestamp format listed in the subject. I need to merge them then sort them. Any help is appreciated. |
I would imagine you would want to use (at least in part) the sort command. The problem is that part of your data you are sorting on is separated by spaces and part is separated by colons. However, if the parts of HH:MM:SS are really all two digits (i.e. leading zeroes if needed), then I think the following options will work for you:
Code:
sort -t " " -k1,1n -k2,2M -k3,3n -k4,4 |
All times are GMT -5. The time now is 10:55 PM. |