题解 | #打印字母数小于8的单词#
打印字母数小于8的单词
https://www.nowcoder.com/practice/bd5b5d4b93a04226a81afbabf0be797d
#!/bin/bash
for i in `cat nowcoder.txt`;
do
a=`echo $i | awk -F "" '{print length}'`
if [[ $a -lt 8 ]];
then
echo $i;
fi
done