728x90
#!/bin/bash
function usage()
{
echo 'cgrep grep pattern from *.[chSs] or *.cpp or *.hpp or *.mk or [Mm]akefile'
}
if [ $# -eq 0 ]; then
usage
exit 1
fi
find . -type f -name "*.[chSs]" -o -name "*.cpp" -o -name "*.hpp" -o -name "*.mk" -o -name "[Mm]akefile" | xargs grep --color=auto -n "$1"
function usage()
{
echo 'cgrep grep pattern from *.[chSs] or *.cpp or *.hpp or *.mk or [Mm]akefile'
}
if [ $# -eq 0 ]; then
usage
exit 1
fi
find . -type f -name "*.[chSs]" -o -name "*.cpp" -o -name "*.hpp" -o -name "*.mk" -o -name "[Mm]akefile" | xargs grep --color=auto -n "$1"
728x90
'Research > SystemProg' 카테고리의 다른 글
objdump 를 이용해서 shared object library 정보 알아보기 (0) | 2013.09.17 |
---|---|
커널에서 함수별 스택 사용량 (0) | 2012.07.18 |
export LC_ALL=C (0) | 2012.01.26 |
runtime control of printk times (0) | 2011.04.22 |
DirectFB Internals - Things You Need to Know to Write Your DirectFBgfxdriver (0) | 2010.03.08 |