统计指定目录 log 文件有多少行

find /home/xcl/log_300_600 -type f -name "*.log*" -exec cat {} + | wc -l

 

posted @ 2024-12-24 17:32  淋哥  阅读(9)  评论(0)    收藏  举报