The "grep" Command
अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!
grep -i
ignores the case of the string.
grep
searches a file for a particular pattern of characters, and displays all lines that contain that pattern.
grep -c
shows the number of matches of the string for the file.
grep [options] pattern [files]
The syntax of grep.
grep -v
displays non-matching lines.
grep -n
displays the line number of the lines containing the term.
grep -l
lists just the names of the files with a match. This is used when search multiple files.