How do I use the grep command?

Nguyễn Hào

New member
How do I use the grep command?
Answer
The grep command is used to search text or searches the given file for lines containing a match to the given strings or words. By default, grep displays the matching lines. Use grep to search for lines of text that match one or many regular expressions, and outputs only the matching lines.
 

Tìm kiếm

Back
Top