Actually, the &#39;flying tar&#39; you mention is approximately how I copy whole directories from one place to another.<br>
<br>
&quot;cp -R dir1 dir2&quot; also works, but it will create dir1 and all
sub-directories in the tree in dir2, so it&#39;s a little tricky to get
exactly right sometimes.<br>
<br>
-- CHS<br>
<br><br><div><span class="gmail_quote">On 3/12/08, <b class="gmail_sendername">Greg Freemyer</b> &lt;<a href="mailto:greg.freemyer@gmail.com">greg.freemyer@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All,<br> <br> I&#39;m trying to do something a little strange.<br> <br> I am working on a shell script that in the middle of it needs to copy<br> files (individually) from dir1 to dir2.<br> <br> The trouble is that there is directory structure below dir1 that I<br>
 want to recreate in dir2.<br> <br> Any ideas?<br> <br> Now that I&#39;m thinking, maybe:<br> <br> cd dir1<br> tar -cf - $relative-path | (cd dir2; tar -xf -)<br> cd dir2<br> <br> I&#39;ll go experiment, but if anyone knows a better way or the specific<br>
 args for this way, I would appreciate it.<br> <br> Thanks<br> Greg<br> --<br> Greg Freemyer<br> Litigation Triage Solutions Specialist<br> <a href="http://www.linkedin.com/in/gregfreemyer">http://www.linkedin.com/in/gregfreemyer</a><br>
 First 99 Days Litigation White Paper -<br> <a href="http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf">http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf</a><br> <br> The Norcross Group<br>
 The Intersection of Evidence &amp; Technology<br> <a href="http://www.norcrossgroup.com">http://www.norcrossgroup.com</a><br> _______________________________________________<br> Ale mailing list<br> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
 <a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br> </blockquote></div><br>