title: Increment all regex matching numbers throughout an HTML file
body: <p>I have a bunch of HTML files that have anchors structured like:</p>
  
  <pre><code>&lt;a href="/src/pkg/target/somefile.txt?s=5424:5465#L217"&gt;LinkName&lt;/a&gt;
  </code></pre>
  
  <p>I'm running the files through sed to convert the links into this structure:</p>
  
  <pre><code>&lt;a href="//domain.org/a/b/somefile.txt#cl-217"&gt;LinkName&lt;/a&gt;
  </code></pre>
  
  <p>The last piece of the puzzle that I'm trying to solve is that I need to increment the numbers within the anchor by 10:</p>
  
  <pre><code>#L217    -&gt; #L227    // first link
  #cl-217  -&gt; #cl-227  // transformed link
  </code></pre>
  
  <p>So the final version of the above example link would be:</p>
  
  <pre><code>&lt;a href="//bitbucket.org/juztin/config/src/tip/din.go#cl-227"&gt;LinkName&lt;/a&gt;
  </code></pre>
  
  <hr>
  
  <p>I've gotten close =/</p>
  
  <pre><code>awk 'gsub(/#cl-[0-9]+/, "#cl-ABC")') # just can't get the incremented match in ABC
  </code></pre>
  
  <p>This one works, but only once, or once per line:</p>
  
  <pre><code>awk '{n = substr($0, match($0, /[0-9]+/), RLENGTH) + 10; sub(/[0-9]+/, n); print }
  </code></pre>
  
  <p><em>(* I don't have gawk, or gnu sed)</em></p>