#Linux 查找log#
-
过滤出所有"departure_battery": 和 "consumption": 后面内容
grep -oE '"(departure_battery_pct|reference_consumption)":[^,}]*' a.log
#Linux 查找log#
过滤出所有"departure_battery": 和 "consumption": 后面内容
grep -oE '"(departure_battery_pct|reference_consumption)":[^,}]*' a.log