title: how to check file is present in directory using if condition
body: <p>in my code. file has specific name where i need to search in a directory whether the file received today or not . so this is my condition:</p>
  
  <pre><code>if [-f "OIS_GCU.$presentday*]
  then echo "exists"
  else
  echo "no"
  </code></pre>
  
  <p>here the presentday is file date format which i have declared before and rest file name will have some randome digits. like OIS_GCU.20180310012345. even though file is there it is skipping and printing else. Please help</p>