8/17 hola, does anybody know of something already written
to cronologically sort the default human readable date fmt,
preferably via a pipe [as opposed to emacs etc]. --psb
May 17 13:03:38 2001
May 22 17:04:12 2001
Nov 30 13:01:38 2001
Aug 21 13:02:46 2002
Aug 22 17:02:42 2002
Aug 7 21:06:41 2002
Aug 9 09:02:24 2002
\_ You might want to pipe through something like
php -r "echo strtotime(fgets(STDIN));" and then sort.
This, of course, will get rid of strings and sort by unix seconds.
Now I feel dirty for using php for something. -- ilyas
\_ Anything wrong with Perl Date::Parse?
\- hey what happened to some of the other suggestions?
nothing is "wrong" with the perl, i was just wondering
if someone had done this alrady rather than my having
to write something. i was hoping someone had cooked
up something with gnu sort analogous to something
like "sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4" to
sort ip addresses. --psb |