[TAG] Need a shell regex; having problems
Jay R. Ashworth
jra at baylink.com
Wed Jun 2 23:57:37 MSD 2004
I'm trying to come up with a shell glob that will match this
traditional regex, and I don't know bash well enough to get it right;
any suggestions appreciated:
...\.[0-9]{2,5}aa.
sel.234aab
prc.37382aaa
out.8888aad
etc...
Is it possible to do this with one glob, or will I need to do more?
It's at the tail end of a path name with at least one * in it (as an
entire element), but I guess that doesn't make it especially difficult
if I need to break it out.
Cheers,
-- jra
--
Jay R. Ashworth jra at baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274
"They had engineers in my day, too." -- Perry Vance Nelson
More information about the TAG
mailing list