I got an awk output showing columns and I need to know the highest value of these columns.
It's easy to do a max on per column on many rows but I need this on all columns per row.
Was thinking of creating an array that I later find the max value of but I can't get that array to work in the next 'pipe'
This is my result in columns and I need the highest value of this which is the best one screen can handle which is different per screen.
Code:
xrandr | awk -F "*" '/*/ { print $0}'
1920x1080 60.00*+ 144.00 119.98 119.88 99.93 59.94 50.00
I need that 144 which is the frequency one screen can handle.
It's easy to cut out the resolution and the 'trash' but I the highest value that can differ between the screens so I don't know the column of it, thus my problem.
Hope my question is clear enough to understand
//B52