find commands find . -regextype posix-egrep -regex ".*(rb|js)$" Find all files ending in .rb or .js. find . -name "*js" -o -name "*rb" Same as above, not using regular expressions.