I am trying to run sed command to display the text from a file by excluding lines starting from "This". I am able to perform the same operation with grep but having trouble with sed. I tried the following command :
sed -n '/[^This]/p' example
It is printing out the whole file as it is.
This is first line of example text
It is a text with erors.
Lots of erors.
So much erors, all these erors are making me sick.
This is a line not containing any erorrs.
This is the last line.
Thanks in advance for any help!