title: How to find file in each directory with the highest number as filename?
body: <p>I have a file structure that looks like this</p>
  
  <pre><code>./501.res/1.bin
  ./503.res/1.bin
  ./503.res/2.bin
  ./504.res/1.bin
  </code></pre>
  
  <p>and I would like to find the file path to the <code>.bin</code> file in each directory which have the highest number as filename. So the output I am looking for would be</p>
  
  <pre><code>./501.res/1.bin
  ./503.res/2.bin
  ./504.res/1.bin
  </code></pre>
  
  <p>The highest number a file can have is 9.</p>
  
  <p><strong>Question</strong></p>
  
  <p>How do I do that in BASH?</p>
  
  <p>I have come as far as <code>find .|grep bin|sort</code></p>