我希望从文件中提取elapsedTime属性值。
记录看
{"realm":"/test","transactionId":"9e26c614","elapsedTime":17,"elapsedTimeUnits":"MILLISECONDS","_id":"9e26c6asdasd"}我所拥有的文件在gb中,我希望得到大于10000的值。
我尝试了grep,但由于冒号,grep不起作用。
grep -wo --color 'elapsedTime' fileName -> this just prints attribute names
grep -w --color "elapsedTime" fileName -> this just highlights the attribute. 发布于 2021-10-11 14:14:41
https://unix.stackexchange.com/questions/672771
复制相似问题