My first comment on every file contains the license message. I want to replace with a new license message. I used the below sed script, which replaces all comments. What is the modification or any other method with awk script for the below to edit only the first comment(license message)?
#sed -f sedscript filename
sedscript:
/\/\*/,/\*\//{
/\*\//i\
/*\
My New\
Copyright \
message\
*/
d
}