题解 | #打印字母数小于8的单词#
打印字母数小于8的单词
https://www.nowcoder.com/practice/bd5b5d4b93a04226a81afbabf0be797d
cat nowcoder.txt | tr -s " " "\n" | awk '{ if(length($0)<8) print $0}'
tr命令将空格替换成换行,再打印长度于8的字符串
打印字母数小于8的单词
https://www.nowcoder.com/practice/bd5b5d4b93a04226a81afbabf0be797d
cat nowcoder.txt | tr -s " " "\n" | awk '{ if(length($0)<8) print $0}'
tr命令将空格替换成换行,再打印长度于8的字符串
相关推荐