用shell打印示例语句中字母数小于6的单词
Bash also interprets a number of multi-character
代码:
echo "Bash also interprets a number of multi-character" | awk '{for(i=1;i<=NF;i++){if(length($i)<6){print $i}}}'
用shell打印示例语句中字母数小于6的单词
Bash also interprets a number of multi-character
代码:
echo "Bash also interprets a number of multi-character" | awk '{for(i=1;i<=NF;i++){if(length($i)<6){print $i}}}'