I am trying to delete a pattern without removing line. I searched a lot in this forum and using those I could come up with sed command but it seems that command does not work. Here's how my file looks like:
Others have offered alternative solutions but no-one has told you why your solution did not work. The dot (.) is a special character in sed and other other languages that use regular expressions to mean match any character. So the dot needs to be escaped in this situation.
It is also worth noting that you can change the delimiters in your sed expression:
sed 's^\./^^g' file
Funnily enough I tried your solution and it worked. How was it not working?
But indeed the regex that I posted wasn't working at my end (I really don't know why as I am not an expert in analysing such regex codes) but the solutions given above did work out.
Thanks for pointing out the shortcoming of my expression. I really appreciate that.