Nguyễn Cap Tuyến
New member
How do I grep an exact string in Unix?
Answer
To Show Lines That Exactly Match a Search String
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. If there are any other words or characters in the same line, the grep does not include it in the search results.
Answer
To Show Lines That Exactly Match a Search String
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. If there are any other words or characters in the same line, the grep does not include it in the search results.