I'm facing a problem in using the regular expression
^$ on UNIX.
When I type
grep '^hello$' text on the command line, as a result it should match the "hello" word because it is the only word on a particular line in the text file. Unfortunately, it isn't doing like that.
I tried it with even when there was no word on any line except "hello" and then also it isn't working.