title: Shell script: find maximum value in a sequence of integers without sorting
body: <p>I have a file with a long list of integers:</p>
  
  <pre><code>10
  4
  66
  ....
  </code></pre>
  
  <p>I want to find the maximum value using UNIX command line tools.  I know I can use <code>sort</code> (and indeed there are solutions to this problem on SO that use <code>sort</code>), but that's inefficient, requiring  O(N*log(N)) and plenty of memory.  With a simple for loop, I should be able to find the maximum value in O(N) and a couple of bytes of memory.</p>
  
  <p>It seems there must be some program out there (with a name like <code>max</code>) that does this out of the box---is that true?</p>