Hi! I am looking for help in Awking for text, I have obtained what I needed with your awk '{print $8}' command. However, I get a ton of values. How do I narrow them down to just a specific value such as the %idle cpu rate. I tried awk '{print $8}' | grep %idle but all I get is %idle %idle %idle. The goal is to just obtain the field:
%idle statistics.
96.66
92.11
97.94
97.70
98.90
This is a snapshot of a server for every 5 minutes so the file is huge
Here are the awk results:
awk '{print $8}'
%idle
96.66
92.11
97.94
97.70
98.90
TX-ERR
0
BMRU
BMRU
BMRU
BMRU
BMRU
BMRU
0
wkB/s
65.91
wkB/s
289.93
wkB/s
270.20