2014-02-26 45 views

回答

2

您可以使用xargs

grep -L "pattern" | xargs cat 

正如man xargs --> build and execute command lines from standard input閱讀。所以它會catgrep -L返回的文件名。

1

您可以使用cat和使用的grep -L輸出...

cat $(grep -L "pattern" *.files)