In Linux, you can use the command line tools "grep" and "wc" to count the number of occurrences in the file

#For example, the number of occurrences of the error keyword in the statistical file api_error.log
grep -o 'error' /www/payment/runtime/logs/api_error.log | wc -l
点赞(0)

评论列表 共有 0 评论

暂无评论

微信服务号

微信客服

淘宝店铺

support@elephdev.com

发表
评论
Go
顶部