title: Is there a quick way to write static a href links? HTML
body: <p>I have a html page where i list the out static links to my photos,
  I have to list them out line by line and change the number i.e. the name of the photos. It's a good thing that the numbers are in running order and the jpg files are named with just 4 digit numbers. For e.g. :</p>
  
  <pre><code>&lt;a href=pics/0001.jpg target=blank&gt;&lt;img src=pics/0001.jpg&gt;&lt;/a&gt;
  &lt;a href=pics/0002.jpg target=blank&gt;&lt;img src=pics/0001.jpg&gt;&lt;/a&gt;
  &lt;a href=pics/0003.jpg target=blank&gt;&lt;img src=pics/0001.jpg&gt;&lt;/a&gt;
  &lt;a href=pics/0004.jpg target=blank&gt;&lt;img src=pics/0001.jpg&gt;&lt;/a&gt;
  &lt;a href=pics/0005.jpg target=blank&gt;&lt;img src=pics/0001.jpg&gt;&lt;/a&gt;
  ...
  &lt;a href=pics/1999.jpg target=blank&gt;&lt;img src=pics/1999.jpg&gt;&lt;/a&gt;
  </code></pre>
  
  <p>is there a more elegant way to do this? or is manually typing in the 0001.jpg to 1999.jpg the only way? Is there a perl/python script to do help write static html?</p>