I need help using sed to comment out the corresponding lines and the 4 lines that follow it. in a text file.
my text file looks like this:
[myprocess-a] property1=1 property2=2 property3=3 property4=4 [anotherprocess-b] property1=gffgg property3=gjdl property2=red property4=djfjf [myprocess-b] property1=1 property4=4 property2=2 property3=3
I want the C # prefix to all lines with the text '[myprocess' and 4 lines that follow it the expected result:
#[myprocess-a]
Thanks so much for your help in this.
sed text-manipulation
Sanjan grero
source share