So, you can use the
* as a wild card for all files when using
cp within context of a directory. Is there a way to copy all files except
where !(b*) exclude all b* files.
You can later disable
This isn't a feature of
You can also combine selection and de-selection patterns, e.g. to copy all wav files except those containing xyz, you can use:
Could also be done in plain old (portable/compatible) bourne shell in a variety of ways with standard tools in a lot less elegant ways than using advanced shell globbing or commands with built-in-exclusion options.
If there are not too many files, this could be a way:
Rsync handles this nicely.
Example copy all:
Example copy all with exclusion:
a: Similar to