我有一个字符串:
The disk 'virtual memory' also known as 'Virtual Memory' has exceeded the maximum utilization threshold of 95 Percent.
我需要每次都在这个字符串单词中搜索The disk
,如果找到,那么我只需要提取短语'*' also known as '*'
并将其放入变量中MONITOR
换句话说,我想搜索并将值放入
MONITOR="'virtual memory' also known as Virtual Memory'"
我该怎么做awk
?