echo "Inverting the pattern match" grep -v "Jordan" $LLO_DATAFILE | head 5 echo "Matching the lines that start with a string" grep -n "^Mi" $LLO_DATAFILE | tail -5 echo "Checking for the whole words in a file" grep -w "Jordan" $LLO_DATAFILE | tail -5 echo "Displaying only the matched pattern" grep -o "Jordan" $LLO_DATAFILE | tail -5