Sample Header Ad - 728x90

how to use SED to replace comments within a comments section

2 votes
2 answers
4012 views
Assume that I have a file that starts with the following /********************************************************* blah blah blah blah blah blah blah blah blah *********************************************************/ Actual code follows here code code code The command I used: sed -i 's/(/*).*(*/)/\1 newcomment \2/1' file but I received the error message sed: -e expression #1, char 14: unknown option to `s' p.s. my question is ... how can i REPLACE the "blah blah blah..." comments with other bloah bloah bloah comments ?
Asked by Chan (23 rep)
Aug 18, 2016, 08:56 AM
Last activity: Aug 18, 2016, 09:59 AM