This question already has an answer here:
- Exclude one pattern from glob match 4 answers
I am working on a script that contains a line similar to
If the directory contains files that are named 1example.txt, example.tmp, example.war it will run the command on all of them. I would like for the command to be run on all of them except for the .war. Is there some way of doing this cleanly? The "/path/to/directory/*example*" is a string that is passed through.