Mike Frysinger <[email protected]> writes:

> i want to have the files sorted by (1) path then (2) file name then (3) cfg 
> order.  so i use this:
> sort -t% -k2 -k4 -k3

Your sort keys overlap.  A sort key that is a proper subset of another
one never changes the resulting sort order, and is thus effectively
ignored.

  -k, --key=POS1[,POS2]     start a key at POS1 (origin 1), end it at POS2
                            (default end of line)
                            ^^^^^^^^^^^^^^^^^^^^^

Andreas.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to