How can I use inverse or negative wildcards when pattern matching in a unix/linux shell?

Say I want to copy the contents of a directory excluding files and folders whose names contain the word ‘Music’.

cp [exclude-matches] *Music* /target_directory

What should go in place of [exclude-matches] to accomplish this?

11 Answers
11

Leave a Comment