
我用cp命令覆盖以前 同名目录下的文件 可是我用命令 cp -Rf /usr/local/ap*/conf/ /tmp/conf 覆盖每个文件总要问我简直烦躁死了,我不是已经用 -f 了吗? 怎么还要提示呢? 请教高手,谢谢
by liyanbing1977 - 系统管理 - 2005-04-14 12:25:01 阅读(1868) 回复(10)
----------------------------------- SRC_DIR="/mnt/winc/test_src" DST_DIR="/mnt/winc/test_dst" find "$SRC_DIR/windows" \ -path "$SRC_DIR/windows/Temp" -prune -o \ \( -type f ! -name "Temp" \) \ | awk '{print "\"" $0 "\""}' \ | xargs cp "{}" "目的目录" \; ----------------------------------- 假设“awk”的输出中有一...
将某一KNNOPIX文件利用cloop mount到/mnt/tmp下面,其含有很多目录,并且目录下面有部分隐藏文件,我利用cp -arf 不能拷贝隐藏文件.单独考文件很麻烦,有什么不错的方法?tar压缩方法?有没有直接用命令的?谢谢!
cp_all.sh /oraprod /oraprod_bak cd $1 ls -l|grep -v total|grep -v "-i"|awk '{printf "nohup cp -rph "$9 " $1 & "}'>/tmp/test.sh sh /tmp/test.sh $2 rcp_all.sh /oraprod bxerp2_isvc:/oraprod cd $1 ls -l|grep -v total|grep -v "-i"|awk '{printf "nohup rcp -rp "$9 " $1 & "}'>/tmp/test.sh sh /tmp/test.sh $2 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2194/showart_63955.html