awk/bugs-fixed/getline-numeric.awk

7 lines
144 B
Awk
Raw Normal View History

{
print $0, ($0 <= 50 ? "<=" : ">"), 50
getline dd < ARGV[1]
print dd, (dd <= 50 ? "<=" : ">"), 50
if (dd == $0) print "same"
}