I have a file containing one function that can start either like this
function f1 () {
... or
function f1 ()
{
...
I'm trying to find a sed command that deletes one line in the first case and two lines in the second case. I tried using:
sed /function/,/{/d $file
but It's not working, how can I do it?