title: Unix Shell Script to write file name from Directory
body: <p>Could you let me now on below.</p>
  
  <p>Example:</p>
  
  <p>In tmp directory below, I have output.txt file, every day I have to look for below .xml files and write the .xml file names into output.txt file (overwrite).</p>
  
  <p>I m using this statement: </p>
  
  <pre><code>ls -1 IBM.PPSDSD.INV.* &gt; Output.txt
  </code></pre>
  
  <p>But, how to get above statement into a shell script so that i can give program file to DBAs.</p>
  
  <pre><code>/tmp directory
  Output.txt
  IBM.PPSDSD.INV.20180324150220.xml
  IBM.PPSDSD.INV.20180426150220.xml
  IBM.PPSDSD.INV.20180729150220.xml
  </code></pre>
  
  <p>Thanks
  Aj</p>