title: Check if a file exists inside a "Variable" Path
body: <p>I am trying to find if a file exist in an iPhone application directory</p>
  
  <p>Unfortunately, apps directory differs from a device to another</p>
  
  <p>On my device, i use the following command to see if the file exists:</p>
  
  <pre><code>if  [[ -f "/var/mobile/Applications/D0D2B991-3CDA-457B-9187-1F02A84FF3AB/AppName.app/filename.txt" ]]; then 
      echo "The File Exists"; 
  else
      echo "The File Does Not Exist";
  fi 
  </code></pre>
  
  <p>I want a command that would automatically search if the file exist without the need to specify the "variable" name inside the path.</p>
  
  <p>I tried this:</p>
  
  <pre><code>if  [[ -f "/var/mobile/Applications/*/AppName.app/filename.txt" ]]; then 
      echo "The File Exists"; 
  else 
      echo "The File Does Not Exist"; 
  fi 
  </code></pre>
  
  <p>But no luck, it didn't find the file,</p>
  
  <p>Maybe because i have 2 path of <code>/var/mobile/Applications/*/AppName.app/</code> since i have cloned the app.</p>
  
  <p>I would like to get a way to be able to find if the file <code>filename.txt</code> exists inside any folder named <code>AppName.app</code> inside this directory <code>/var/mobile/Applications/*/</code></p>