获取"参数列表太长"错误

时间:2017-10-11 06:47:57

标签: unix grep

尝试从包含大量文件的位置获取字符串。错误为argument list too long,已累[{1}},但不支持这些高级关键字

xargs

1 个答案:

答案 0 :(得分:0)

试试这个

$ find /file/collection/*/logs/ -name "*.log" -type f -maxdepth 1 | xargs grep hello
相关问题