The following should work (note that on some systems you may need to delete all comments):
sed '1 {
Or compact version:
sed '1{h;d};/^}},$/{x;b};H;${x;s/^}},/}}/;b};d'
Example:
$ echo 'parallel ( { ignore(FAILURE) { build( "Build2Test", BUILDFILE: "", WARFILE: "http://maven.example.com/130602.0.war", STUDY: "UK", BUG: "33323" ) }}, )' | sed '1{h;d};/^}},$/{x;b};H;${x;s/^}},/}}/;b};d' parallel ( { ignore(FAILURE) { build( "Build2Test", BUILDFILE: "", WARFILE: "http://maven.example.com/130602.0.war", STUDY: "UK", BUG: "33323" ) }} )
source share