I am trying to remove the text between /*
and */
that is at the beginning of the file. There can be white spaces
or new lines (\n)
before or in-between /*
and */
.
I tried following but doesn't work when space or new lines are there.
sed '/^\/\*/,/\*\//d' file
Sample file:
/*******
delete
bla
***
*/
/* do not */
print "hi"
/*******
dont delete
****/
Expected output:
/* do not */
print "hi"
/*******
dont delete
****/