Say I have ....
> echo "cat dog" | grep -w "dog"
this returns the line "cat dog" as expected.
and say I have ...
> echo "catdog" | grep -w "dog"
this doesn't returns the line "catdog" as expected.
Now, say I have ...
> echo "cat.dog." | grep -w "dog"
this does returns the line "cat.dog." , but I thought it should not.
What's up with the grep recognizing the dot (i.e. - ".")?
I'm on solaris 9...
> echo "cat dog" | grep -w "dog"
this returns the line "cat dog" as expected.
and say I have ...
> echo "catdog" | grep -w "dog"
this doesn't returns the line "catdog" as expected.
Now, say I have ...
> echo "cat.dog." | grep -w "dog"
this does returns the line "cat.dog." , but I thought it should not.
What's up with the grep recognizing the dot (i.e. - ".")?
I'm on solaris 9...