From: J <jean.chalard@gmail.com>
To: Hugo Haas <hugo@larve.net>
Cc: zsh-users@sunsite.dk
Subject: Re: Expansion of patterns
Date: Wed, 9 Mar 2005 13:43:13 +0100 [thread overview]
Message-ID: <fb6be96e0503090443bff9119@mail.gmail.com> (raw)
In-Reply-To: <87d5u958l3.fsf@jibboom.natpar.dnsalias.net>
> I've been wanting to expand patterns that do not match filenames. For
> example:
>
> echo a1 a2 a3
>
> could be (hopefully) written:
>
> echo a[1-3]
> [...]
> Is there any way to expand patterns like this in a simple way?
For this one you can just write a{1..3} which should work the way you
expect. Note that it does keep leading zeroes, so that a{01..03} will
produce
a01 a02 a03.
--
J
"- Watashi, DATE-tte hajimete datta no...
- Sou kai ?
- Hontou wa suki na hito to surun deshou ?" -- Tokugawa Asuka
prev parent reply other threads:[~2005-03-09 12:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-09 12:04 Hugo Haas
2005-03-09 12:43 ` J [this message]
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=fb6be96e0503090443bff9119@mail.gmail.com \
--to=jean.chalard@gmail.com \
--cc=hugo@larve.net \
--cc=zsh-users@sunsite.dk \
/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).