find . \( -type d -name '.idea' -or -type d -name 'tags' -or -type d -name '.git' -or -type d -name 'target' -or -type d -name 'tmp' \) -prune -o -type f -print |xargs grep hogehoge |cut -d ":" -f 1|uniq
find . \( -type d -name '.idea' -or -type d -name 'tags' -or -type d -name '.git' -or -type d -name 'target' -or -type d -name 'tmp' \) -prune -o -type f -print |xargs grep hogehoge |cut -d ":" -f 1|uniq