awk -v count=2 'BEGIN {
if (count == 1)
print "Yes";
else
print "Huh?";
}'
#Ternary operator
awk -v count=2 'BEGIN {
print (count==1) ? "Yes" : "Huh?";
}'
Useful links
awk -v count=2 'BEGIN {
if (count == 1)
print "Yes";
else
print "Huh?";
}'
awk -v count=2 'BEGIN {
print (count==1) ? "Yes" : "Huh?";
}'
Useful links
For further actions, you may consider blocking this person and/or reporting abuse
Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.
Mike Young -
Mike Young -
Mike Young -
Mike Young -
Top comments (0)