Originally Posted by AmirJamez
but it didn't work. could you please advise me on that ?
I can. You forgot to pipe sed output to m4 macro processor, as I suggested in this
thread. Moreover, m4 will print modified file to stdout, so you will need to save it somewhere.