You must pipe the command's output through grep in order to utilize grep as a filter. " | " is the symbol for pipe.
The full line containing the matched string is displayed by default when using grep. To display only the matched pattern, change this setting. Using the -o option, we may instruct grep to show only the matching string. Using grep -n, output should be displayed together with the line number: To display the file's line number where the matching line was found.
Within collections of files, the grep command can look for a string. It outputs the name of the file, a colon, the line that matches the pattern, and the pattern when it discovers a pattern that matches in more than one file.
Instead of putting a filename at the end of a grep command, use an asterisk to search all files in the current directory.
To learn more about string refer to:
https://brainly.com/question/16397908
#SPJ4