Shell命令統計文件行數方法

方式一bash awk 'END{print NR}' testFile.txt 方式二code sed -n '$=' testFile.txt 方式三class wc -l testFile.txt 方式四test cat testFile.txt |wc -l
相關文章
相關標籤/搜索