Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

A question regarding linux commands

$
0
0

Hello,
I have a problem which is hopefully addressed quickly by linux experts in this community;
Given a text content

Node      State CPU 0  CPU 1  CPU 2  CPU 3  CPU 4  CPU 5  CPU 6  CPU 7  CPU 8  CPU 9 CPU 10 CPU 11
 -1          up   0.0%   0.0%   0.0%   0.0%   0.0%   4.0%   0.0%   2.0%   0.0%   0.0%   0.0%   2.0%
  2          up 100.0%   0.0% 100.0% 100.0%   0.0%   0.0% 100.0% 100.0%   0.0%   0.0%   0.0%   0.0%
  3          up 100.0% 100.0% 100.0%   0.0%   0.0%   0.0% 100.0% 100.0%   0.0%   0.0%   0.0%
  4          up 100.0%   0.0%   0.0%   0.0% 100.0%   0.0% 100.0% 100.0% 100.0%   0.0%   0.0%   0.0%
  5          up 100.0%   0.0% 100.0%   0.0%   0.0% 100.0% 100.0% 100.0%   0.0%   0.0%   0.0%   0.0%
  6          up 100.0%   0.0%   0.0% 100.0%   0.0%   0.0% 100.0% 100.0% 100.0%   
  7          up 100.0%   0.0%   0.0% 100.0%   0.0% 100.0% 100.0% 100.0%   0.0%   0.0%   0.0%   0.0%
  8          up 100.0%   0.0%   0.0% 100.0% 100.0%   0.0% 100.0%  99.0%   0.0%   0.0%   0.0%
  9          up 100.0%   0.0%   0.0%   0.0% 100.0%   0.0% 100.0% 100.0% 100.0%   0.0%   0.0%   0.0%
 10          up 100.0% 100.0% 100.0%   0.0%   0.0%   0.0% 100.0%   0.0% 100.0%   0.0%   0.0%   0.0%

How to get the node# of the line where the number of '0.0%' is max,

Thank you in advance!


Viewing all articles
Browse latest Browse all 39981

Trending Articles