Bash bracket expansion: How to match all files names with a number?
<p>I want to match all filenames in a directory that are like this:</p>

<pre><code>h1.txt, h2.txt, h12.txt, h3.txt
</code></pre>

<p>If I do</p>

<pre><code>echo h[[:digit:]].txt
</code></pre>

<p>I get</p>

<pre><code>h1.txt, h2.txt, h3.txt
</code></pre>

<p>so it matches all the files I want, except <code>h12.txt</code>, because it has two digits instead of one. Is there an expansion for <em>one or more</em> digits?</p>