Hi!

I have a file like:
--/tmp/test---
^
word1 ^ word2
word1 ^word2 word3
word1 word2^ word3

----
If I want to grep out all lines with a single '^' character as a word, I say

grep '\b\^\b' /tmp/test

but it does not give back the first two lines of the file, as expected.

However

grep '\B\^\B' /tmp/test

archive good results. The same thing happends if I use '$' instead of '^'.

Is it a bug of a ''feature''. I did not find any explanation of this on the web.

Thanks in advance,
Attila




Reply via email to