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
One solution would be ls -1|grep -v '\.jar$'
ls -1|grep -v '\.jar$'