sysutils_egrep.md 224 B

Search for multiple strings in files

$ egrep 'pattern1|pattern2' *.py

Pass the -i (ignore case) and --color option as follows too

$ egrep -wi --color 'warning|error|critical' /var/log/messages