How do I write a sed script the rearranges/refactors a string of characters of a file?
The contents of my file are:
for(int i=0; i<old(a, 10); i++)
{
sum += old(c*c, i*a)
}
And I want the modified contents to look like:
for(int i=0; i<new(10,0,a); i++)
{
sum += new(i*a, c*c)
}
new(10,0,a)a typo? is it supposed to benew(10, a)?0in between the 10 and a