Answer the question
In order to leave comments, you need to log in
How to copy to the current folder part of another with exceptions?
How to copy files and folders from another directory, excluding a couple of unnecessary ones?
I know it's possible like this:
cp sourcefolder/* !(excludefolder | excludefile) destination/
cp sourcefolder/* !(sourcefolder/excludefolder | sourcefolder/excludefile) this-folder/
cp sourcefolder/* !(excludefolder | excludefile) previous-folder/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question