|
From: | Ed Morton |
Subject: | Re: How to check if a field is a number (integer or float)? |
Date: | Sat, 19 Jun 2021 08:50:23 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Ed. On 6/19/2021 8:17 AM, Peng Yu wrote:
Hi, I am wondering what is the best way to test if a field is a number (integer of float). I could use regex. But I am wondering if there is a more awk-native way to do the test. Also if regex is used, what is the regex that matches integer/float used awk. Thanks.
[Prev in Thread] | Current Thread | [Next in Thread] |