linux 下查找不符合条件的文件并cp

find . ! -name "*.txt" | xargs -i cp {} ../desc;

find . ! -name "*.tmp" -exec mv {} ../desc \;

posted @ 2012-10-29 22:02  good90  阅读(572)  评论(0编辑  收藏  举报