I am using awk to find out DEVICE on which read per second (rd_sec/s) is highest, (from SAR file) below is my command :
# sar -d -f sa28 | awk '{print $3,$4}' |sort -k1,1n
Output is showing on console with sorted manner, But I want the exact one entry whose rd_sec/s is highest.
Output is something like this :
dev8-0 9.92
dev8-0 9.92
dev8-0 9.93
dev8-0 9.94
dev8-0 9.94
dev8-0 9.96
dev8-0 9.98
dev8-0 9.98
dev8-0 9.98
dev8-0 9.98
dev8-0 9.98
dev8-0 9.99
How can I do that ? whats the changes in the command ??