• 2022-10-27
    在当前目录下通过以下命令创建了两个文件:touch doc01.txt touch doc02.txt 则以下可以删除所有txt后缀文件的脚本是
    A: for f in "$(ls *.txt)";do echo rm "$f";done
    B: for f in *.txt;do /bin/rm $f;done
    C: for f in *.txt;do /bin/rm "$f";done
    D: for f in $(Is *.txt);do echo rm "$f";done