cgrep
Posted 2012/01/27 10:57
#!/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"
'Research > SystemProg' 카테고리의 다른 글
| cgrep (0) | 2012/01/27 |
|---|---|
| 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 |
| What are the relationships among the main DirectFB types? Screen, Layers, Surface, ... (0) | 2010/03/02 |
| 신규 칩셋 선택시 검토할 사항 (0) | 2009/11/30 |
- Filed under : Research/SystemProg
- Comment Trackback