Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Regular expression matching - how to ?
- X-seq: zsh-workers 1070
- From: jarausch@xxxxxxxxxxxxxxxxxxx (Helmut Jarausch)
- To: zsh-list@xxxxxxxxxxxx
- Subject: Regular expression matching - how to ?
- Date: Tue, 14 May 1996 13:05:02 +0200
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author