This really sounds simple but I can't think of a neat way of doing it, I want to test (in bash) if there's any file with a specific suffix in a particular directory.
This means I can't use "[ -f <filename> ]" because I don't know the filename and I don't see how I can use "[ *.sfx ]" because if there are no *.sfx files the string is still not empty.
I suppose I could say something like "[ *.sfx = '*.sfx' ]" but it's a quoting nightmare.
Any better ideas?