我的 json 文件看起来像这样
[{"product":"Apple","id":"2134"},{"product":"Mango","id":"4567"}]
我想为给定的“产品”grep/sed/awk 'id'。
输出:
Enter product : Apple Your product id is : 2134
grep sed awk json
awk ×1
grep ×1
json ×1
sed ×1