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
|
75 Discussions
|
Please Login in order to post a comment
{ while read name m1 m2 m3; do if [[ m2 -ge 50 && name : Pass" else echo "$name : Fail" fi done }
the public test case is pasing and one private test case is failing, any advice please
{ while read name m1 m2 m3; do if [[ m2 -ge 50 && name : Pass" else echo "$name : Fail" fi done }
the public test case is pasing and one private test case is failing, any advice please
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.