这行不通。这可以在find中完成吗?还是我需要 xargs?
find -name 'file_*' -follow -type f -exec zcat {} \| agrep -dEOE 'grep' \;
最佳答案
解决方法很简单:通过 sh 执行
... -exec sh -c "zcat {} | agrep -dEOE 'grep' " \;
https://stackoverflow.com/questions/307015/