From: "Jérémie Roquet" <jroquet@arkanosis.net>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: 'for' sorted?
Date: Thu, 22 Sep 2022 17:26:21 +0200 [thread overview]
Message-ID: <CAFOazANc=koWaYxdXAK2x7rQJtsTxhaxY23doNwgZYmAQ6xfFw@mail.gmail.com> (raw)
In-Reply-To: <49e39986-c9d4-fc8a-3ee2-f484f44cff4c@eastlink.ca>
Hi,
Le jeu. 22 sept. 2022 à 17:20, Ray Andrews <rayandrews@eastlink.ca> a écrit :
> for var in /dev/sd*; do
> ...
>
> Apart from capturing the output and then sorting it, is is possible for
> 'for' to go thru the input in a sorted way? I doubt it but she moves in
> mysterious ways so it might just be doable.
Lexical order:
for var in /dev/sd*(on); do
To see the available sort specifiers, use:
for var in /dev/sd*(o<tab>
Best regards,
--
Jérémie
next prev parent reply other threads:[~2022-09-22 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-22 15:19 Ray Andrews
2022-09-22 15:26 ` Jérémie Roquet [this message]
2022-09-22 15:54 ` Ray Andrews
2022-09-22 16:12 ` Mikael Magnusson
2022-09-22 16:25 ` Ray Andrews
2022-09-22 16:17 ` Andreas Kusalananda Kähäri
2022-09-22 16:30 ` Ray Andrews
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFOazANc=koWaYxdXAK2x7rQJtsTxhaxY23doNwgZYmAQ6xfFw@mail.gmail.com' \
--to=jroquet@arkanosis.net \
--cc=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).