我可以做到这一点:
但不是这个:
为什么不呢?
$ find .
.
./b
./b/foo
./c
./c/foo
而这个:
$ find . -type f -exec cat {} \;
This is in b.
This is in c.
但不是这个:
$ find . -type f -exec cat > out.txt {} \;
为什么不呢?