Command grep Description It is used to find particular string , grep filter searches a file for a particular pattern of characters. Syntax grep [options] pattern [files] Options/Flags -c : This prints only a count of the lines that match a pattern $ grep -c "is" text.txt -n : Display the matched lines and their line numbers. $ grep -n "is" text.txt . . . Author Ken Thompson.