content search linux grep

cd /etc/mysql
grep -rnw '.' -e 'max_allowed_packet'