From: jarausch@igpm.rwth-aachen.de (Helmut Jarausch)
To: zsh-list@sterling.com
Subject: Regular expression matching - how to ?
Date: Tue, 14 May 1996 13:05:02 +0200 [thread overview]
Message-ID: <199605141105.NAA00363@igpm.rwth-aachen.de> (raw)
Hello,
is it possible to do a regular expression match in Z-shell without
invoking external programs
what I would like to do is
for $f in *; do
if ( [[ `file $f` == "/bin/[a-z]* *script" ]] ); then
....
fi
done
but unfortunately == is not like ~= in perl.
So what can be done (using perl from the beginning?)
Thanks for any hints,
Helmut Jarausch.
reply other threads:[~1996-05-14 14:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199605141105.NAA00363@igpm.rwth-aachen.de \
--to=jarausch@igpm.rwth-aachen.de \
--cc=zsh-list@sterling.com \
/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).