Sorting out of sequence log Apache log file
Ray Van Dolson
rayvd at digitalpath.net
Wed Apr 26 21:13:34 UTC 2006
On Wed, Apr 26, 2006 at 02:05:40PM -0700, Allen K. Smith wrote:
> sort -s -t[ -k 2.4,2.6M -k 2.1,2.2n -k 2.13,2.19n may do it.
>
> I have to RTFM whenever I need to get this working.
>
> http://www.gnu.org/software/textutils/manual/textutils/html_mono/textutils.html#SEC23
>
Shoot, probably would have taken me longer to work out the correct sort
syntax than to write the Python script (sadly). :)
Gonna try the sort method now just for fun.
Ray
More information about the redhat-list
mailing list