Is there a simpler way to write:
wc -l foo?.txt foo??.txt ?
Since in my case I have (at most) two digit numbers, I tried using the range specification wc -l foo[1-99].txt but this ended up displaying only results between 1 and 9 (instead of 99). But this is a (nonworking) hack, and I really need something like wc -l foo[?,??].txt.