|
From: | Peng Yu |
Subject: | [bug-gawk] How to ensure string comparison? |
Date: | Wed, 2 Nov 2016 21:30:09 -0500 |
Hi, I want to make sure string comparison is used for the second case. Is there a way to do so in awk? /tmp$ awk 'BEGIN { print ("10" > "2" )}' 0 /tmp$ printf '%s\t%s\n' 10 2 | awk '{print ($1>$2) }' 1 -- Regards, Peng
[Prev in Thread] | Current Thread | [Next in Thread] |