title: Setting File Names As Variables In Bash
body: <p>I want to find an mp4 file in desktop In a random named file and set its name as a variable, and then use the variable later on, in bash. </p>
  
  <p>I have checked the file permissions.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>
  
  <pre><code>find /home/administrator/Desktop/*/*.mp4
  FILE-NAME=*.mp4
  
  /usr/bin/mkvmerge --output '/home/administrator/Desktop/*/"$FILE-NAME.mp4"' '(' 
  '/home/administrator/*/"$FILE-NAME.mp4"' ')' --attachment-name poster.jpg --
  attachment-mime-type image/jpeg --attach-file 
  /home/administrator/Desktop/*/poster.jpg
  </code></pre>
  
  <p>Error:</p>
  
  <p><code>Error: The file '/home/administrator/Desktop/*/"$FILE.mp4"' could not be opened for reading: open file error.</code></p>