I think that \n in DBG_log is pointless. When I do find * -name '*.[ch]' -print0 | xargs -0 -r egrep -n '\<DBG_log.*\\n\>' I get about 100 hits. That doesn't count cases where the format is on another line. This should be tidied up.