"find" command with a variable directory
<p>I'm trying to list the files in a directory that is given by the variable <code>DIR</code>. My code looks like this so far:</p>

<pre><code>for i in `find $DIR -name "*.txt"
</code></pre>

<p>The variable <code>DIR</code> is already defined. I'm not sure what the syntax is here.</p>