Max value Record from a File

view full story

http://www.unix.com – I have a file with 3 columns I want to get the record with the max salary. If there are more than 1 record having the highest salary, i want any one of them. Code: empid,ename,Sal 1,abc,100 2,def,200 3,xyz,300 4,pqr,100 5,mnq,300 Output Any record with 300 as salary Moderator's Comments: Please use next time code tags for your code and data, avoid adding color or different fonts and font size to your posts. ---------- Po (HowTos)