commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Gnu grep allows to restrict the search to files only matching a given pattern. It also allows to exclude files.
There are 2 alternatives - vote for the best!
I like this better than some of the alternatives using -exec, because if I want to change the string, it's right there at the end of the command line. That means less editing effort and more time to drink coffee.
If you can do better, submit your command here.
You must be signed in to comment.