I have a file named test.txt test file has the following content of just 4 lines in it:
d
dxx
xxd
xxdxx
when I try to use the following grep command on ununtu, it is giving me no output
$ grep 'd[^x]' test.txt
whereas I expect output to be:
d
xxd
Could any please explain me the reason for such behaviour