name: ata
group: atagroup;
save set: /ger
/germe
storage nodes: ata2
cl OS type: yyy
name: ozan
group: ;
save set: /etc
storage nodes: ozi
cl OS type: xxx
I try to get lines between "save set:" and "storage nodes:"
if "group:" value is ";" . Then I wrote this:
awk '$1=="group:"{if($2~/;/)}{/save set:/,/storage nodes:/}'
but it prints every lines without if clause.
Thanks for helps.
group: atagroup;
save set: /ger
/germe
storage nodes: ata2
cl OS type: yyy
name: ozan
group: ;
save set: /etc
storage nodes: ozi
cl OS type: xxx
I try to get lines between "save set:" and "storage nodes:"
if "group:" value is ";" . Then I wrote this:
awk '$1=="group:"{if($2~/;/)}{/save set:/,/storage nodes:/}'
but it prints every lines without if clause.
Thanks for helps.