Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    find . -name '.*?' -prune -o -name '*.foo' -exec grep bar /dev/null {} +
This is the POSIX way. You'd probably put it in a function in .bashrc


Just noting that I answered why I don't use this approach here https://news.ycombinator.com/item?id=45569313




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: