-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Andreas Schwab on 6/28/2009 2:28 AM:
>> 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.
>
> -k, --key=POS1[,POS2] start a ke
Mike Frysinger 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
i cant figure out if i'm doing something stupid here or sort is doing
something wrong ...
consider this (reduced) input:
/path/._cfg_asciidoc.conf%/path/%._cfg_%asciidoc.conf
/path/._cfg_docbook.conf%/path/%._cfg_%docbook.conf
/path/._cfg0001_asciidoc.conf%/path/%._cfg0001_%asciid