The title already states it:
I want to use some linux one liner (e.g. sed)
to transform
Anytext {
into
Anyt
If the intention is to remove the newline from a \n{ sequence bbe seems to be the simplest tool to use:
\n{
bbe
bbe -e 's/\n{/{/' infile