I am using Ubuntu 14.04. I need to replace this section of code in java (using JDK-8) file using sed commands -
//START_EDIT1
some lines
//END_EDIT1
with this lines of codes.
//START_EDIT1
System.out.println("Done");
//END_EDIT1
I am a newbie and can not find the right commands to find this two comments in java code and replace the code between them using sed commands.I can not change the java comment format. Is there a way to find this using sed commands? or simply what is the sed command to find double forward slash comment?