I have a bunch of text files in which many paragraphs begin with printf("<style type=\"text/css\">\n");
and end with printf("</style>\n");
For example,
A.txt
...
...
printf("<style type=\"text/css\">\n");
...
...
...
printf("</style>\n"); // It may started with several Spaces!
...
...
I want this part replaced with some function call.
How to do it by sed command?