How can I extract a YAML block using AWK

后端 未结 0 967
情话喂你
情话喂你 2020-12-11 02:35

I want to use AWK to extract the \'---\'-delimited YAML block from a file like the following:

---
title: "This is a title"
sourceEditionDate: 1927-0         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题