|
发表于 2007-1-13 19:42:11
|
显示全部楼层
find . -print0 | xargs -n1 -0 cat
man xargs:
Because Unix filenames can contain blanks and newlines, this default
behaviour is often problematic; filenames containing blanks and/or new-
lines are incorrectly processed by xargs. In these situations it is
better to use the `-0' option, which prevents such problems. When
using this option you will need to ensure that the program which pro-
duces the input for xargs also uses a null character as a separator.
If that program is GNU find for example, the `-print0' option does this
for you. |
|