可以帮忙看一下嘛?我这个cat不懂为什么没有反应出来 按道理来说,应该是计数的
看日志是输出到 /soft/output 文件。可以尝试以下命令
/soft/output
# 输出文本内容 cat /soft/output # 查看最后的100行 tail -fn 100 /soft/output # 统计文件行数 grep -n "" '/soft/output' | wc -l # 统计目录下文件个数 ls -lR '/soft/output' | grep "^-" | wc -l