Skip to content

Mr. Rosenblatt: The Blog

Tag: grep

Quick searching with grep

find ./ -name "*.php" -print0 | xargs -0 grep -ls 'words words words'

Here’s a faster way to grep. If you know the type of file you want to look for (let’s say PHP), there’s no need to grep through everything (like images, or log files).

Author TimPosted on February 24, 2008February 24, 2008Categories UncategorizedTags grep, tip831 Comments on Quick searching with grep

This blog made from 100% organic human thoughts, no AI. Thanks for reading!

Recent Posts

  • Documentation for an unknown future
  • Why’d they do that?
  • How to design a GraphQL API
  • Interfaces, abstractions, and developer productivity
  • On Writing…an RFC
Mr. Rosenblatt: The Blog Proudly powered by WordPress