title: In fish shell, how to iterate over files using wildcard and variable?
body: <p>If I run:</p>
  
  <pre><code>for f in *1000.png
     echo $f
  end
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>1000.png
  11000.png
  21000.png
  </code></pre>
  
  <p>I would like to do something like:</p>
  
  <pre><code>for i in 1 2 3
      for f in *$i000.png
           echo $f
      end
  end
  </code></pre>
  
  <p>To get</p>
  
  <pre><code>1000.png
  11000.png
  21000.png
  2000.png
  12000.png
  22000.png
  3000.png
  13000.png
  23000.png
  </code></pre>
  
  <p>Instead, it outputs nothing.</p>
  
  <p>I also tried:</p>
  
  <pre><code>for i in 1 2
      set name "*"$i"000.png"
      for f in (ls $name)
          echo $f
      end
  end
  </code></pre>
  
  <p>Outputting:</p>
  
  <pre><code>ls: *1000.png: No such file or directory
  ls: *2000.png: No such file or directory
  </code></pre>