title: Check if file exists in ksh
body: <p>I wonder why the below tiny script is now working.
  I created dfFile under /data directory but script does not print the expressions in if statement.</p>
  
  <pre><code>#!/bin/ksh
  DATAFILE="/data/dfFile"
  echo $DATAFILE
  #df -h&gt;/data/dfFile
    if [[ -e DATAFILE ]]
    then
      echo "sa"
      echo $DATAFILE
       df -h &gt; $DATAFILE
    fi
  </code></pre>