Exclude a string from wildcard search in a shell

You can use find to do this:

$ find . -name '*.txt' -a ! -name '*Thomas.txt'

Leave a Comment