This awk
may be the way to go:
awk '/\/\*|\*\// {$0=""}1' file
aaaaaaa
ccccccc
ddddd
It just replace line with /*
or */
with nothing.
If the bbbbbb
goes over more than one start/stop line, like this:
cat file
aaaaaaa
/*bbbbb*/
ccccccc
/*bbbbb
bbbbbb
bbbbbb*/
ddddd
And you would like to remove all from /*
to */
and not only line with these tags:
awk '/^\/\*/ {f=1} {print f?"":$0} /\*\/$/ {f=0}' file
aaaaaaa
ccccccc
ddddd