Ok, I've tried all of them.
scp -r MAT*L destserver:/whatever/" - this one looks like it's working.
scp -r ./!(MAT*L) destever:/whatever/
For this one I ran the command "
shopt extglob", then did the copy. But I got this error "
-bash: !: event not found"...so, it's not working.
I tried also the first answer...
The folder structure is kinda like this:
I want to take
MAT11NA_09_XX_XX_XXX folders and put in a folder on another server.
Then I want to take
MAT11NA_09_XX_XX_XXXL folder and put in another folder on another server.
Then...I want to take
MAT11NA_11_XX_XX_XXX folders and put in in a folder (different from the folder where I put
MAT11NA_09_XX_XX_XXX) on another server.
The same for
I don't want to put ALL L folders in one folder from another server, and I don't want to put ALL non-L folders in another one folder from another server.
Hope you understand this time, sorry. Thank you.
Ok, after the last answerr I am using these and it seems they are working:
scp -r MAT11NA_09_*L contentuser@/destination
scp -r MAT11NA_09_*[^L] contentuser@/destination