统计.txt文件个数

ls -l *.txt | grep -c .txt

原文地址:https://www.cnblogs.com/lexus/p/1699273.html