title: How to check if a files exists in a specific directory in a bash script?
body: <p>This is what I have been trying and it is unsuccessful. If I wanted to check if a file exists in the ~/.example directory</p>
  
  <pre><code>FILE=$1
  if [ -e $FILE ~/.example ]; then
        echo "File exists"
  else
        echo "File does not exist"
  fi
  </code></pre>