linux find grep - Forest0923/memo GitHub Wiki

Usage

find . -type f \( -name '*.c' -o -name '*.h' \) -print0 | xargs -0 grep -C 3 -Hni 'root_hpa'

find

grep