View previous topic :: View next topic |
Author |
Message |
mark.ord n00b
Joined: 14 Nov 2004 Posts: 8
|
Posted: Sun Nov 14, 2004 4:16 am Post subject: /usr/bin/sort by date broken? |
|
|
Is sort -M (month comparison) broken on Gentoo, or am I just missing something?
Code: |
scholars root # cat test
DEC
JAN
AUG
JUL
|
Code: |
scholars root # /usr/bin/sort --version
sort (coreutils) 5.2.1
Written by Mike Haertel and Paul Eggert.
[...snip...]
scholars root # cat test | /usr/bin/sort -M
AUG
DEC
JAN
JUL
|
But if I use sort, pulled from a Debian box
Code: |
scholars root # /usr/local/bin/sort --version
sort (GNU textutils) 2.0
Written by Mike Haertel.
[...snip...]
scholars root # cat test | /usr/local/bin/sort -M
JAN
JUL
AUG
DEC
|
While the versions and package (coreutils vs. textutils) differ, man sort on Gentoo documents that -M should work.
Mark. |
|
Back to top |
|
|
fifo Guru
Joined: 14 Jan 2003 Posts: 437
|
|
Back to top |
|
|
mark.ord n00b
Joined: 14 Nov 2004 Posts: 8
|
Posted: Sun Nov 14, 2004 5:53 am Post subject: |
|
|
Awesome!
Thanks a lot.
Mark. |
|
Back to top |
|
|
|