title: replace all symlinks with original
body: <p>I have the following directory structure</p>
  
  <pre><code>/symdir
    sym1 -&gt; ../dir1
    sym2 -&gt; ../dir2
    hello.txt
  </code></pre>
  
  <p>And then</p>
  
  <pre><code>/dir1
    some
    files
    here
  /dir2
    more
    files
  </code></pre>
  
  <p>I would like to replace the symlinks in symdir (sym1, sym2) with the originals.  I.e.</p>
  
  <pre><code>some_awesome_bash_func symdir symdir_output
  </code></pre>
  
  <p>Would create </p>
  
  <pre><code>/symdir_output
    /dir1
      some
      files
      here
    /dir2
      more
      files
    hello.txt
  </code></pre>
  
  <p>How would I accomplish this?</p>