Deutsch English Français Italiano |
<v4okm3$h4cs$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.unix.shell Subject: Re: Numerically sorted arguments (in shell) Date: Mon, 17 Jun 2024 08:21:55 +0200 Organization: A noiseless patient Spider Lines: 30 Message-ID: <v4okm3$h4cs$1@dont-email.me> References: <v4grk8$2pp51$1@dont-email.me> <v4l5p1$3lqic$10@dont-email.me> <v4ll54$3sd11$1@dont-email.me> <slrnv6ua1b.qfh.apple.universe@freight.zombinet> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 17 Jun 2024 08:21:58 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d070642afdec4e1c027704024e3cba98"; logging-data="561564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18p2Ig+pVy64fd1waZAtUTn" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:zZw/yOk0pokOVF3kF4jggd2qmK4= X-Enigmail-Draft-Status: N1110 In-Reply-To: <slrnv6ua1b.qfh.apple.universe@freight.zombinet> Bytes: 2390 On 16.06.2024 20:00, Eric Pozharski wrote: > with <v4ll54$3sd11$1@dont-email.me> Janis Papanagnou wrote: >> [sorting file names numerically] > > (Disclaimer: I'm ksh-ignorant) Speaking of features. > > {14439:44} [0:0]% print -cC6 * > bar-20.baz bar-3.baz foo-10.bar foo-23.bar foo-5.bar > bar-21.baz bar-6.baz foo-13.bar foo-29.bar foo-6.bar > bar-24.baz bar-8.baz foo-1.bar foo-3.bar foo-7.bar > bar-26.baz foo-0.bar foo-22.bar foo-4.bar foo-8.bar > {14445:45} [0:0]% print -cC6 *(n) > bar-3.baz bar-21.baz foo-1.bar foo-6.bar foo-13.bar > bar-6.baz bar-24.baz foo-3.bar foo-7.bar foo-22.bar > bar-8.baz bar-26.baz foo-4.bar foo-8.bar foo-23.bar > bar-20.baz foo-0.bar foo-5.bar foo-10.bar foo-29.bar > > That nymph between weapon and tool is 'glob qualifier' (acts at > 'filename generation' phase). But! It's zsh. Yeah, I was positive that Zsh supports such a qualifier. > That being said, as a > result of cross-pollination, something similar might be in ksh too. I > can't say where to dig through ksh-documentation. Well, I don't know of any in Ksh. (That's my problem.) Janis