10.4.6 确定字符串的长度

使用内部变量length可以确定字符串的长度,示例如下:


  1. [root@localhost ~]# cat Awd.txt | awk '{print length}'
  2. 30
  3. 32
  4. 30
  5. 41