copying files

copying files

Post by Barry Margoli » Fri, 11 Dec 1998 04:00:00




>Hi all,     I have two directories with the same directory structure I
>want to copy all makefiles in one directory hierarchy to another directory on
>unix, I was playing around with find command but couldn't exactly figure out,
>any help is greatly appreciated.....

cd sourcedir
tar cf - `find . -name Makefile -print` | (cd destdir; tar xf -)

--

GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Don't bother cc'ing followups to me.