Deutsch English Français Italiano |
<v5bruk$2kl97$1@news.xmission.com> View for Bookmarking (what is this?) Look up another Usenet article |
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: <v5bruk$2kl97$1@news.xmission.com> References: <v4grk8$2pp51$1@dont-email.me> <v4us5u$21bu3$1@dont-email.me> <v4vqib$21g0v$1@dont-email.me> <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 -