#!/bin/bash for i in `cat nowcoder.txt` do if [ ${#i} -lt 8 ] then echo $i fi done
# 出现在 ${} 内部,它表示字符串长度。
#
${}
END