title: How to remove all but a few selected files in a directory?
body: <p>I want to remove all files in a directory except some through a shell script. The name of files will be passed as command line argument and number of arguments may vary.</p>
  
  <p>Suppose the directory has these 5 files:</p>
  
  <pre><code> 1.txt, 2.txt, 3.txt. 4.txt. 5.txt
  </code></pre>
  
  <p>I want to remove two files from it through a shell script using file name.  Also, the number of files may vary.</p>