Which command is used to select lines in a file that matches pattern?
Answers
Answered by
0
If grep finds a line that matches a pattern, it displays the entire line. If you specify multiple input files, the name of the current file precedes each output line.
Here is how the grep command can be used in its most basic form. In the output above, the line in the file input.txt containing the pattern or string "Linux" was displayed as output.
Here is how the grep command can be used in its most basic form. In the output above, the line in the file input.txt containing the pattern or string "Linux" was displayed as output.
Similar questions