使用powershell和文件

时间:2017-08-17 16:20:26

标签: powershell curly-braces

我希望使用powershell在花括号之间提取数据。

文件内容:

MODULE TAG="TT203-1" PLANT_AREA="SLURRY" CATEGORY=""
VALUE_CHANGED=T
HAS_DEFAULT_VALUE=F
ALARM_HELP
  {
  ALARM_CONSEQUENCE_OF_INACTION=2
  ALARM_TIME_TO_RESPOND=10
  HELP_TEXT_1="1.  Stop unloading of delivery truck.
  2.  If no delivery in progress, shut all manual valves leading to and from the tank."
  HELP_TEXT_2="1. Overfilled by new delivery
  2.  Backflow from another process
  3. Level Transmitter failure"
  HELP_TEXT_3="Overfill of the tank will result in a reportable environmental spill and safety hazard"
  }

我想拉出“MODULE TAG”行以及ALARM_HELP之后的花括号之间的内容。我一直在做相当多的PowerShell,但这超出了我的水平。

0 个答案:

没有答案