Search for the regex $greppattern in all files with '.c' or '.h' extension under $searchpath with name pattern $filepat and show the matched line numbers, file names and matched lines
find "$searchpath" -name "$filepat.[ch]" -exec grep --color -aHn "$greppattern" {} \;