find . -name *.jks -print 2>/dev/null
returns files of extension jks that do not have underscores as part of their name. Much to my surprise, I have just discovered that * does NOT substitute the underscore.
find . -name *_*.jks -print 2>/dev/null
returns files of extension jks that have one underscore.
How do I search for files that have 0 or more underscores? Using OSX Mountain Lion.
find
supporting and logical operator?find . -name '*.jks' -a ! -name '*_*.jks'
– manatwork Sep 17 '13 at 14:13find . -name '*.jks' -print 2>/dev/null
worked. you can submit an answer, @manatwork, and i will go ahead and accept it and up vote – amphibient Sep 17 '13 at 14:16find
. – manatwork Sep 17 '13 at 14:17