Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by oguz-ismail

10 hours ago

    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

1 comment

oguz-ismail

Reply

robenkleeneĀ  8 hours ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities