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' - 2
- Discussions
'Awk' - 2
'Awk' - 2
Sort by
recency
|
68 Discussions
|
Please Login in order to post a comment
One liner awk '{print 2 >= 50 && 4 >= 50 ? "Pass" : "Fail" )}'
awk '{if(2>50 && 1" : Pass"} else {print $1" : Fail"}}'
awk '{print $1,":",($2<50 || $3<50 || $4<50)?"Fail":"Pass";}'
Tried to go with a pure bash approach but in the submission the test case 2 doesn't pass because potatoes... any clue? Malformed input data maybe? I copied and pasted the input data locally and it works without any issue...