* Regular expression matching - how to ?
@ 1996-05-14 11:05 Helmut Jarausch
0 siblings, 0 replies; only message in thread
From: Helmut Jarausch @ 1996-05-14 11:05 UTC (permalink / raw)
To: zsh-list
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-05-14 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-14 11:05 Regular expression matching - how to ? Helmut Jarausch
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).