在括号内搜索字符串并获取数据

时间:2018-04-05 18:12:16

标签: regex linux shell ksh

在ksh / shell中,使用下面的示例字符串,我想搜索单词" Masking View Names"然后在括号之间提取数据(但不包括括号)。

Masking View Names
 {
   hostname1
   hostname2
 }
Parent Initiator Groups
 {
   None
 }

0 个答案:

没有答案