Path: ...!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: gazelle@shell.xmission.com (Kenny McCormack) Newsgroups: comp.unix.shell Subject: Is 'ls -v' the Final Solution? (Was: Numerically sorted arguments (in shell)) Date: Mon, 24 Jun 2024 13:22:28 -0000 (UTC) Organization: The official candy of the new Millennium Message-ID: References: <7cbgkkx149.ln2@slack15-a.local.uk> Injection-Date: Mon, 24 Jun 2024 13:22:28 -0000 (UTC) Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4"; logging-data="2774311"; mail-complaints-to="abuse@xmission.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: gazelle@shell.xmission.com (Kenny McCormack) Bytes: 1474 Lines: 25 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 is no need to do so, almost everyone gets busy on the proof. - John Kenneth Galbraith -