The 'cat' process is completely unneeded. It is better not to use it.
Good:
> cat filenames.txt | xargs svn commit -m "Passed testing"
>
> (if you wanted one commit containing all files) or
Better:
xargs svn commit -m "Passed testing" < filenames.txt
Good:
> cat filenames.txt | xargs -n 1 svn commit -m "Passed testing"
>
> (if you wanted one commit per file).
>
> Paths containing spaces may not be handled properly by the above;
> testing is advised.
Better:
xargs -n 1 svn commit -m "Passed testing" < filenames.txt
Bob
来源自:http://svn.haxx.se/users/archive-2006-05/1130.shtml