Having a text file records. txt containing the following info
Nosi 4000
David 2000
Mark 30000
Ester 1000
How can I display name and highest salary which is Mark 30000 using ask or any other tool
Having a text file records. txt containing the following info
Nosi 4000
David 2000
Mark 30000
Ester 1000
How can I display name and highest salary which is Mark 30000 using ask or any other tool
Hi Nosi...
As far as I know there is only one platform that has the ask
utility and that is the ancient AMIGA family of computers.
I assume you mean 'awk' so have you searched this site for similar types of questions and/or attempted to modify or create an attempt yourself?
Also, OS type and platform is always a great help too.
If it arranged like this, two fields per line, then you can sort by field 2 numerically
sort -k2n records. txt
Pipe this to a tool that displays the first (head-1) or the last line (tail-1).