the following excludes certain directories successfully
cp -r probe/!(dir) /destination
I want to exclude certain file types and tried unsuccessfully
cp -r probe/!(*.avi) /destination
the following excludes certain directories successfully
cp -r probe/!(dir) /destination
I want to exclude certain file types and tried unsuccessfully
cp -r probe/!(*.avi) /destination
One alternative: find ... | pax -rw /destination
You can add the necessary arguments to find to filter out the portions of the hierarchy that should be ignored. Or, it may be simpler to insert a grep -v
into the pipeline. Or, you can exclude using pax's -s option.
Regards and welcome to the forum,
Alister
Hi,
I was not able to follow your suggestions - too little knowledge on my side. I asked a friend (my last resort) and did it finally with zip. Thank you anyway.
Regards, Thomas