-type f -name "*.log" | xargs grep ""
时间: 2023-10-24 19:37:26 浏览: 88
mysql-8.0.18-1.el7.x86_64.zip
This command will search for all files with a .log extension in the current directory and its subdirectories, and then pass them as arguments to the grep command. The double quotes after grep indicate that we are searching for an empty string, which will effectively list all lines in the log files.
阅读全文