[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ensure string comparison
From: |
arnold |
Subject: |
Re: Ensure string comparison |
Date: |
Sun, 12 Jul 2020 11:35:26 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Please review the gawk manual; you will find answers to questions
like this there.
Arnold
Peng Yu <pengyu.ut@gmail.com> wrote:
> Hi,
>
> To make sure the comparison is always string comparison, should I
> always use the following code for string comparsion between $1 and $2,
>
> $1 "" <= $2 ""
>
> instead of using the following?
>
> $1 <= $2
>
> Is the following OK? Thanks.
>
> $1 "" <= $2
>
> --
> Regards,
> Peng