【发布时间】:2013-10-25 14:22:34
【问题描述】:
我有一个 Linux 命令行来显示某个结果。从结果中,我想对其进行 grep 或使用 awk 来提取特定值。这是命令行的结果:
OK 0 seconds over max, 0 active processes, next process in the future|'overmax'=0s;300;600 'active'=0 'nextoldest'=-1153s
我只想在 'active'=? 之后显示值?在这种情况下是 0
【问题讨论】:
标签: linux ubuntu awk grep nagios