Here is my data file
foo 3535 ab 3355
bar 55523 gdg 6646
foo1 333 xzzz 555
foobar 555 zztt 56
FOO 333 44 66 7
foo 5555 tttt 7777
I type
grep foo input.txt
I get
foo 3535 ab 3355
foo1 333 xzzz 555
foobar 555 zztt 56
foo 5555 tttt 7777
however, i only want:
foo 3535 ab 3355
foo 5555 tttt 7777
Is it possible? How do I tell that to grep? How can I match exact word and string using grep?