#!/bin/bashs='line...*action.acroread: {APPMGR_acroread("blah.pdf");}another line...'sed '/^\(\*action\.acroread[^{]*\)\(.*\)/ s||\1/* \2 */|' <<< "$s"
Standard input is empty
line... *action.acroread: /* {APPMGR_acroread("blah.pdf");} */ another line...
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!