bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sort -k bug


From: Bastian Fuchs
Subject: sort -k bug
Date: Thu, 23 Oct 2003 22:03:40 +0200

Hello,
maybe I don't understand the manpage, because my english isn't very
good. But I think that the manpage says that -k1,1 and -k1 is the same
... but it isn't.

[bastiaf:~]% mkdir a
[bastiaf:~]% cd a
[bastiaf:~/a]% touch a
[bastiaf:~/a]% ln a b
[bastiaf:~/a]% ln a c
[bastiaf:~/a]% ls -liA | sort -uk1
378446 -rw-r-----  3 bastiaf  bastiaf  0 Oct 23 21:59 a
378446 -rw-r-----  3 bastiaf  bastiaf  0 Oct 23 21:59 b
378446 -rw-r-----  3 bastiaf  bastiaf  0 Oct 23 21:59 c
total 0
[bastiaf:~/a]% ls -liA | sort -uk1,1
378446 -rw-r-----  3 bastiaf  bastiaf  0 Oct 23 21:59 a
total 0
[bastiaf:~/a]%

Manpage:
       -k, --key=POS1[,POS2]
              start a key at POS1, end it at POS 2 (origin 1)

-Bastian Fuchs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]