Hi I am trying to find all js & css files in one find command. I tried all of the below but in vain:
find WebContent -name \"*.[jc]ss?\" find WebContent
-name accepts arguments that are globs, not regular expressions. You could use -regex if you wanted to use regular expressions, but the -o option (meaning "or") is probably the simplest solution:
-name
-regex
-o
find WebContent -name "*.js" -o -name "*.css"