I just found this:
sed '/label/{n;n;s/{}/{some comment}/;}'
The intended effect is to look for the label , continue 2 lines down ( n;n; ), and then replace with ( s ) some comment .
This is a terrific opportunity that sed never knew about.
Would someone be kind enough to indicate the name of this curly brace and the name of the class of operators inside curly braces?
I would like to go to Google and find out more :)
Sincere thanks.
source share