当前位置: 代码迷 >> 综合 >> 利用bash for循环打印下面这句话中字母数不大于6的单词 I am abcd teacher welcome to abcd trainingclass
  详细解决方案

利用bash for循环打印下面这句话中字母数不大于6的单词 I am abcd teacher welcome to abcd trainingclass

热度:48   发布时间:2024-03-06 04:42:37.0

vim1.sh

#!/bin/bash
echo "I am bwwg teacher welcome to bwwg trainingclass" > test.txt
for i in `cat test.txt
doif [ ${
    #i} -lt 6 ];thenecho $ifi
done
  相关解决方案