echo olavo|grep -E "^olavo$" # returns olavo
echo olavo|grep -E "ola$" # returns none
grep -r "texthere" .
# searches current directory ./ and subdirectories for keyword
grep -rwb . -e "regexp keyword here"
grep -P '^(tomcat!?)' tst1.txt
grep -rn regex_search folder_where_to_search
#Ex: search pattern in "." current folder (r) recursively
grep -rn pattern .
$ grep "PATTERN1|PATTERN2" FILE
$ grep -E "PATTERN1|PATTERN2" FILE
$ grep -e PATTERN1 -e PATTERN2 FILE
$ egrep "PATTERN1|PATTERN2" FILE