I have files that have a header file that I need to remove.
/***....*
.
.
.
***.....*/
It is a block like this.
I have used a sed command to remove this block.
sed -i '0,/^\/*\*/d' filename
It only removes the first line of the block comment (e.g) /***....*
and I wish for it to remove the whole block.
I have tried using:
sed -i '/^.*\/\/*/d' filename
, but that removes all occurrences of /*...*/