Hi
Please could someone explaing the difference between a and b in the script below.
Not sure why the "a" test gives a false result.
echo 19G 19 | awk '{
alert= 5
a= substr($1,1,length($1)-1)
b= $2
if(a <= alert){
print "a: "a" is not less than "alert
}
if(b <= alert){
print "b: "b" is not less than "alert
}
}'
Thank you
Please could someone explaing the difference between a and b in the script below.
Not sure why the "a" test gives a false result.
echo 19G 19 | awk '{
alert= 5
a= substr($1,1,length($1)-1)
b= $2
if(a <= alert){
print "a: "a" is not less than "alert
}
if(b <= alert){
print "b: "b" is not less than "alert
}
}'
Thank you