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
|
65 Discussions
|
Please Login in order to post a comment
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...
this oneliner worked for me