On Thu, 2019-08-01 at 14:13 -0700, ToddAndMargo via users wrote:
> Is there a way to do a "cp -r" and have it
> exclude certain directories?

Assuming that you only need to exclude one file or dir, how about:
$ cd <src-dir>
$ find . -depth | grep -v '^<excluded-path>' | cpio -pdumv <dest-dir>
$ cd -
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to