linux cp不覆盖

覆盖复制:

cp -rf  a/* b/

不覆盖复制:

awk 'BEGIN { cmd="cp -ri a1/* a2/"; print "n" |cmd; }'

猜你喜欢

转载自www.cnblogs.com/againn/p/9290543.html