title: move or copy a file if that file exists?
body: <p>I am trying to run a command </p>
  
  <pre><code>mv /var/www/my_folder/reports.html /tmp/
  </code></pre>
  
  <p>it is running properly. But I want to put a condition like if that file exists then only run the command. Is there anything like that?</p>
  
  <p>I can put a shell file instead.
  for shell a tried below thing</p>
  
  <pre><code>if [ -e /var/www/my_folder/reports.html ]
    then
    mv /var/www/my_folder/reports.html /tmp/
  fi
  </code></pre>
  
  <p>But I need a command. Can some one help me with this?</p>