日期:2014-05-16  浏览次数:20666 次

find之后tar问题
aopclinux 2.3 # find ./ -name "*[cC][aA][mM][eE][rR][aA]*.*" -ok tar -czvf { } \; 
< tar ... ./bionic/libc/kernel/common/media/msm_camera.h > ? y
tar: }: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
< tar ... ./hardware/msm7k/libcamera/QualcommCameraHardware.h > ? y
tar: }: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
< tar ... ./hardware/msm7k/libcamera/camera_ifc.h > ?

------解决方案--------------------
find ./ -name "*[cC][aA][mM][eE][rR][aA]*.*" -ok tar -czvf my.tar.gz {} \;