grep
This command is a must for many roles such as linux system admins, devops ...
Basic
Filter out lines with matching pattern:
Bashgrep pattern somefile.txy
Print only those lines which do not match the pattern (-v option is --invert-match):
Bashgrep -v pattern somefile
Look/Search for content of the files recursively:
-i case insensitive; -R recursive;
Bashgrep -Ri somepattern *
Count how many time word appears:
Bashgrep -c RUN Dockerfile
Also grep lines before and after:
Bashgrep pattern -A 20 -B 20 somefile
grep more stuff at once
Bashsudo netstat -tulpen | egrep -E "25|587|143|465|993"