Sujet : Is 'ls -v' the Final Solution? (Was: Numerically sorted arguments (in shell))
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.shellDate : 24. Jun 2024, 15:22:28
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <v5bruk$2kl97$1@news.xmission.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
7cbgkkx149.ln2@slack15-a.local.uk>,
...
I finally remembered which tool has "versionsort(3)" -- it's ls:
$ ls -1
test10.txt
test1.txt
test2.txt
$ ls -v -1
test1.txt
test2.txt
test10.txt
Does that help?
>
I didn't realise it could work like that. Thanks.
To OP: Does "ls -v" meet your criteria?
-- Faced with the choice between changing one's mind and proving that there isno need to do so, almost everyone gets busy on the proof. - John Kenneth Galbraith -