Simon,

Is it possible to have cp skip some directories when using cp -R?
Dunno, but cpio -p would be able to solve your problem.

 $ find . -print | cpio -pdmuv /new/directory

Find simply generates a list of file names, which cpio reads on it's standard input as a list to copy. Obviously you can put any filter you like between find and cpio,
but you can also use anything to create the list to feed to cpio.

$ find . -print | egrep -v '(not-this|nor-that)' | cpio -pdmuv /new/directory
 $ cat my-list-of-files | cpio -pdmuv /new/directory

HTH

P.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to