egrep for only words(exact match)
Hi All,
I have the below file content
<sunilkumar@test5>more test.ksh
movie work
a or b
clear
Query1: For the below command, is there anyway, I can see the strings not found as part of search. For eg. the command should output "and" is not found
Query 2: For the below command, is there any way, I can list only "a or b" and not "movie work"; I meant exact word search. If yes, how do I do that?
<sunilkumar@test5>egrep -i "or|and" test.ksh
movie work
a or b
|