Here\'s how one might list all files matching a pattern in bash:
ls *.jar
How to list the complement of a pattern? i.e. all files not match
Little known bash expansion rule:
ls !(*.jar)