You are viewing a single comment's thread. Return to all comments →
awk '{ total=$2+$3+$4 avg=total/3 if ( avg >= 80 ) grade="A"; else if ( avg >= 60 ) grade="B"; else if ( avg >= 50 ) grade="C"; else grade="FAIL" print $0" : "grade }'
Seems like cookies are disabled on this browser, please enable them to open this website
'Awk' - 3
You are viewing a single comment's thread. Return to all comments →