How do I find the length of a string in awk?

How do I find the length of a string in awk?
Answer
awk length(string) Function:
The length() function calculates the length of a string. Explanation: Length of the string also includes spaces. 3. awk substr(s, p, n) Function: The length() function is used to extract substring function from a string.
 

Tìm kiếm

Back
Top