title: How do I Select Highest Number From Series of <string>_# File Names in Bash Script
body: <p>I have a directory with files</p>
  
  <pre><code>heat1.conf
  heat2.conf
  ...
  heat&lt;n&gt;.conf
  minimize.conf
  ...
  other files....
  </code></pre>
  
  <p>I want my <strong>Bash script</strong> to be able to grab the highest number filename (so I can delete and replace it when I find an error condition).</p>
  
  <p>What's the best way to accomplish this?</p>
  
  <p>Please discuss the speed of your solution and why you think that it is the best approach.</p>