title: How to sort multiple files? Unix
body: <p>Usually i can do this to sort a textfile:</p>
  
  <pre><code>cat infile.txt | sort &gt; outfile.out
  mv outfile.out &gt; infile.txt
  </code></pre>
  
  <p>I can also do it in a loop:</p>
  
  <pre><code>for inp in ./*; do
      fname=${inp##*/}
      cat "$inp" | sort  &gt; ./"$fname".out
  done
  </code></pre>
  
  <p>Other than writing a loop, is there a one liner to do the above for all files in the terminal?</p>