title: Export result from FIND command to variable value in linux shell script?
body: <p>I try to complete one shell script, but I don't have idea how to do final, and probably easiest step.</p>
  
  <p>That is attaching value to variable from find command.</p>
  
  <p>For example, if I execute:</p>
  
  <pre><code>find -type f -iname *test.tdf*
  </code></pre>
  
  <p>I will get output in example:</p>
  
  <pre><code>/root/Desktop/test.tdf
  </code></pre>
  
  <p>Now, I need a way to attach that value to for example:</p>
  
  <pre><code>export PATH_TO_TEST_TDF_FILE=/root/Desktop/test.tdf
  </code></pre>
  
  <p>But now, problem is that file may not be located there, so I must assign it to result from find.</p>
  
  <p>How?</p>