cp 的时候出现:-bash: /bin/cp: Argument list too long
cp ./*.swf
/www/img/html/xxx/action/
解决办法:
find ./ -name "*.*"
-print0 | xargs -i cp {}
/www/img/html/xxx/action/
偶然出现:xargs: unmatched
single quote
解决办法:
find ./ -name "*.*" -print0 | xargs -0 -i -t cp {}
/www/img/html/xxx/action/
cp不重复覆盖:--reply=no
find ./
-name "*.*" -print0 | xargs -0 -i -t cp --reply=no {}
/www/img/html/xxx/action/
参考文献:
http://www.cnblogs.com/peida/archive/2012/11/15/2770888.html