We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Grep Sed Awk
- 'Awk' - 3
- Discussions
'Awk' - 3
'Awk' - 3
Sort by
recency
|
84 Discussions
|
Please Login in order to post a comment
` [awk '{
if(((3+$4)/3) >= "80")
print $0,":","A"
else if (((3+2+4)/3) <= "80")
print $0,":","B"
else if (((3+2+4)/3) <= "60")
print $0,":","C"
else if (((3+$4)/3) <= "50")
print $0,":","FAIL"
}' ](https://)`
awk ' { avg=(3+$4)/3
}'
awk '{(avg=(3+0,":",(avg<50)?"FAIL":(avg>=80)?"A":(avg>=60)?"B":"C";}'