RosettaCodeData/Task/Integer-comparison/AWK/integer-comparison-1.awk
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

5 lines
156 B
Awk

/[0-9]* [0-9]*/{
if ($1 == $2) print $1, "is equal to", $2
if ($1 < $2) print $1, "is less than", $2
if ($1 > $2) print $1, "is greater than", $2
}