yq 仅比较文件的一部分
如果我有两个文件,data1.yaml 和 data2.yaml。
我不想比较数据文件的所有内容。我只需要比较
---
openapi: 3.0.1
info:
version: 0.0.1
title: yaml validation example
description: >-
Some description here.
我尝试过
yq compare data1.yaml data2.yaml
的示例版本部分,但它比较整个文件
If I have two files, data1.yaml and data2.yaml.
I do not want to compare all conntent of data files. I need to compare only for example version part
---
openapi: 3.0.1
info:
version: 0.0.1
title: yaml validation example
description: >-
Some description here.
I tried
yq compare data1.yaml data2.yaml
but it compares whole files
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能是这样的?
May be something like this?