grep

grep


==============================
grep
==============================

grep -B 5 -A 2 --color 'keyword' /path/to/file.log

==============================
Secret script for finding certain nasties:
==============================

# grep -Rl "= Array('1'=>'" /var/www/vhosts 2>/dev/null
# grep -Rl " (base64_decode (" /var/www/vhosts 2>/dev/null

==============================
Recursive Grep:
==============================

# grep -R "x" .*