I want to print out the lines that have the max value in column 3. and count the occurrence of column 1; if there are more than one occurrences, line with highest column 2 value will be printed.
I have this data:
input:
AV 234 25
AV 256 76
AS 421 34
AV 124 76
BD 136 71
BD 241 76
AW 111 76
BD 241 76
BD 255 76
Output:
AV 256 76 2
BD 255 76 3
AW 111 76 1
---------- Post updated at 06:35 AM ---------- Previous update was at 05:14 AM ----------
$DLC/bin/rfutil db1 -C aimage list
i am using this command and gettin d output below..
Extent: 1
Status: Empty
Type: Fixed Length
Path: /home/mralbu/ai_dir/db1.a1
Size: 8184
Used: 0
Start: N/A
Seqno: 0