I have a code clause in a multiple line and want port it to one line for example:
int j =7;
int k =17;
int p =17;
myFunc(j,
k,
p);
j++;
port it to
int j =7;
int k =17;
int p =17;
myFunc(j, k, p);
j++;
I have a expression that close to what that I need but result is
sed -e '/my/,/;\a/{:a; N; s/\n/ /g; ta}' my file
int j =7;
int k =17;
int p =17;
myFunc(j, k, p); j++;
any idea How to do that?