grep으로 잡은 화일 중에서 다시 grep 하기

find -type -f -iname ‘*.sh’ | xargs grep -l -i ‘bash’ | xargs grep -i ‘p4′

또는

emacs의 find-grep에서,

find . -type f -print0 | xargs -0 -e grep -Z -l -i ‘BUG’ | xargs -0 -e grep -nH -e ‘define’

Monday, April 27th, 2009 at 23:44
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>