Test file glob pattern - which files does it match
Published by Alp Kose on May 22nd, 2018
So I wanted to write an exclude list for an app which accepts file globs, so this is how to test it:
compgen -G "<glob-pattern>"
https://stackoverflow.com/questions/2937407/test-whether-a-glob-matches-any-files