How do I display grep results?

Như Quỳnh

New member
How do I display grep results?
Answer
To Show Lines That Exactly Match a Search String
The grep command prints entire lines when it finds a match in a file. To print only those lines that completely match the search string, add the -x option. The output shows only the lines with the exact match.
 

Tìm kiếm

Back
Top