Inserting Specific function within a Block. Scripting
Consider you have a file test.cpp with below lines
Test(func_class,func1)
{
Test_Func1();
Test_Func2();
Test_Func3();
}
Test(func_class,func3)
{
Test_Func1();
Test_Func9();
Test_Func3();
}
Test(func_class,func2)
{
Test_Func6();
Test_Func7();
Test_Func3();
}
Now i want to insert a new line in between the curly braces for e:g in
Test(func_class,func1/2/3) after inserting will be like
Test(func_class,func1)
{
Test_Func1();
Test_newFunc6();
Test_Func2();
Test_Func3();
}
Test(func_class,func3)
{
Test_Func1();
Test_newFunc6();
Test_Func9();
Test_Func3();
}
Test(func_class,func2)
{
Test_Func6();
Test_newFunc6();
Test_Func7();
Test_Func3();
}
this can be done using scripting . can anyone please suggest shell script
or perl python to do this,
What exactly do you want? I can help you with .NET
ReplyDelete