Hacker News new | past | comments | ask | show | jobs | submit login

I use something along the lines of

    find . -iname '.*' -prune -o -iname '*.foo' -exec grep needle {} +
I don't want to have to learn 10 different command syntaxes for walking directory trees, so find works well. The "+" terminator of find's exec is similar to xargs, but preserves the flexibility of find's exec.



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

Search: