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
|
73 Discussions
|
Please Login in order to post a comment
awk '{if ((3<50)||(1" : "b}'
awk -F " " '{if (3 >= "50" && 1,":","Pass"; else print $1,":","Fail";}'
I wrote the above logic but not sure why it fails for test cases 1 & 2.
awk '{ if (3 < 50 || 1" : Fail" } else { print $1" : Pass" } }'