GREP Cheatsheet
GREP stands for Global search using Regular Expressions and Print. It is a find command which returns all the line that has respective search patterns. Syntax : grep searchPattern searchLocation Parameter Output -n outputs line number -v outputs lines that doesn't contain the pattern -i ignores the case of searchPattern "searchPattern" search term (case sensitive in case -i not provided) ^ matches search pattern at the beginning of the line. e.g. ^"search". $ matches search pattern at the end of the line.,e.g. "search"$. If present at beginning then it ignores it completely. ^ matches search pattern at the beginning of the line. e.g. ^"search". \< matches search pattern at the beginning of the word. \> matches search pattern at the end of the word. \b matches search pattern...