title: Bash find return value
body: <p>I'm trying to find a file and am checking in multiple locations, but instead of just finding it and moving on I would like to know exactly where it is. Does "find" return a value other than what is passed to the find query? If it finds something does it also return true or 0? </p>
  
  <pre><code>FILE="file.txt"
  DIR1="/path1/"
  DIR2="/path2/"
  </code></pre>
  
  <p>I know this is syntactically incorrect but what I need is something like...</p>
  
  <pre><code>if ${DIR1}${FILE} = true
  then
      echo "${FILE} has been found in ${DIR1}"
  fi
  </code></pre>
  
  <p>Is there something better than find to use here?</p>