stig@hackvan.com wrote:
> foo[12-21] would expand to foo12, foo13, ... foo20, foo21
The [] syntax already has meaning, so it shouldn't be changed. It
could be done with a different syntax, but maybe this will already
work for you:
eval "echo foo{$(seq -s, 12 21)}"
Beware that this will produce all such filenames, regardless of
whether those files exist.
paul