title: Shell script - move files into folder
body: <p>Suppose a particular command generates few files (I dont know the name of these files). I want to move those files into a new folder. How to do it in shell script?</p>
  
  <p>i can't use :</p>
  
  <pre><code>#!/bin/bash
  mkdir newfolder
  command 
  mv * newfolder
  </code></pre>
  
  <p>as the cwd contains lot of other files as well.</p>