Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • why --include='*/' \ and --exclude='*' \ ? BTW it seems a good solution. Commented Mar 2, 2020 at 14:35
  • @matteo I only want to copy the files with the given filename suffixes, which is why I use --exclude='*' to exclude all other files (note that I know nothing about what else you have in your source directory). To be able to recurse, I still have to include directories (these would be excluded by --exclude='*'), which is why I also have --include='*/'. Commented Mar 2, 2020 at 14:47