title: list file names with sorted order - ls command
body: <p>I have some files in a UNIX directory: </p>
  
  <pre><code>/opt/apps/testloc $ ls -mn 
  test_1.txt
  test_2.txt
  test_11.txt
  test_12.txt
  test_3.txt
  </code></pre>
  
  <p>I want to list this with <code>ls</code> command and I need the output in sorted order based on the numbers at the end of the file name. Say output should be like below.</p>
  
  <pre><code>test_1.txt, test_2.txt, test_3.txt, test_11.txt, test_12.txt
  </code></pre>
  
  <p>I am not able to get as mentioned. These file names were considered as text and they were sorted as below,</p>
  
  <pre><code>test_11.txt, test_12.txt, test_1.txt, test_2.txt, test_3.txt
  </code></pre>
  
  <p>My command <code>ls –mn</code> (I need the output to be in comma separated format so I have used <code>-m</code>)</p>
  
  <p>I need this to be done to process the files in incremental format in my next process.</p>