与但类似:
find . -iname "somepatter*txt" -print -exec cat {} \;
如何将每个文件的文件名打印在每一行的前面,以及find的结果?
find . -iname "somepattern*txt" -exec grep -H '' {} \+
有点滥用grep
,但它可以工作。具有产生最少可用过程的好处。假设您不希望在每个文件前加一行文件名。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句