I have one file with the following data.
i want the output as below
I am using the below command for the output
egrep ‘t?’ filename.
We know that the meaning of “?” is zero or one occurrence of previous character. So in my case t is optional if it present it has only one t but i am getting all lines as output.
Please help me what i am doing mistake