I am trying to get SED to transform the output from a TMS320C55x compiler so that it is parsed correctly by Visual Studio (so that when you click an error/warning it jumps to the location in the source. I have done this successfully with other compilers, but do not use SED often enough for this to be painless, and this time it has defeated me.
The compiler output is of the form:
"<file>", line <line>: <error|warning> <id>: <text>
for example:
"ImageBuffer.c", line 21: error #20: identifier "p" is undefined
And I need it transformed to:
<file>(<line>) : <error|warning> <id>: <text>
so for the example above:
ImageBuffer.c(2) : error #20: identifier "p" is undefined
The critical thing is the () part.
Thanks.