Grep command is used to search text or search the given file for lines containing a match to the given strings or words.