linux cp不覆盖

覆盖复制:

cp -rf  a/* b/

不覆盖复制:

awk 'BEGIN { cmd="cp -ri a1/* a2/"; print "n" |cmd; }'
原文地址:https://www.cnblogs.com/againn/p/9290543.html