Greg Wooledge wrote:
> In this particular case, I would use a glob rather than an ERE,
> because "h?" is much simpler than "^h.$".
Besides, bash's extended globs provide everything ERE's provide. I use
the idiom:
shopt -s extglob
# for example, to check for numbers
case "-${something}" in -+([[:digit:]])) echo "number";; esac
all the time.
clemens
[Prev in Thread]
Current Thread
[Next in Thread]
Re: RFE: allow double quotes to group multi-words & be treated as?1?arg, w/DQ's stripped off -- including RH =~,
clemens fischer<=