ø Don’t waste your time reading this blog ø

Linux Grep - how to show only filenames with matches

Filed under: web 2.0 — Tags: — taewoo @ 12:03 pm May 19, 2010

Voila!

find . -name \*.php | xargs -n 10000 grep -snH “SOME_SEARCH_TERM”| cut -f1 -d’:’

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Spam protection by WP Captcha-Free