find命令
参数 -exec(注意结尾空格和;)
find . -name new.txt -exec cp {} new1.txt ;
参数xargs
当数据传到后面是末尾时
find . -name new.txt | xargs rm
当数据传到后面不是在末尾时
find . -type f -print | xargs -I {} cp {} test11/
find命令
参数 -exec(注意结尾空格和;)
find . -name new.txt -exec cp {} new1.txt ;
参数xargs
当数据传到后面是末尾时
find . -name new.txt | xargs rm
当数据传到后面不是在末尾时
find . -type f -print | xargs -I {} cp {} test11/