linux系统在文件夹下查找含有指定字符串的文件的方法 find /dir/ -type f -name "*.log" | xargs grep "error" 从/dir目录下查找所有扩展名为.log的文件,并找出包含error字符串的行