摘要: 1. 获取变量的长度 获取字符串长度的方法大概有4种:(以hello world 为例) 通过 wc -L $ echo "hello world" | wc -L 11 通过expr length string $ expr length "hello world" 11 通过awk内置的leng 阅读全文
posted @ 2025-05-25 22:17 逐梦北京 阅读(25) 评论(0) 推荐(0)