I need help with using sed to comment a matching lines and 4 lines which follows it. in a text file.
my text file is like this:
[myprocess-a] property1=1
sed '/\[myprocess/ { N;N;N;N; s/^/#/gm }' input_file