1
xdeng 2013-05-30 18:26:26 +08:00 1
-R 目录递归啊
|
2
elvba OP @xdeng mv没有-R和-r参数吧?
[root@www27148ue bbs]# mv --help Usage: mv [OPTION]... [-T] SOURCE DEST or: mv [OPTION]... SOURCE... DIRECTORY or: mv [OPTION]... -t DIRECTORY SOURCE... Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. Mandatory arguments to long options are mandatory for short options too. --backup[=CONTROL] make a backup of each existing destination file -b like --backup but does not accept an argument -f, --force do not prompt before overwriting -i, --interactive prompt before overwrite -n, --no-clobber do not overwrite an existing file If you specify more than one of -i, -f, -n, only the final one takes effect. --strip-trailing-slashes remove any trailing slashes from each SOURCE argument -S, --suffix=SUFFIX override the usual backup suffix -t, --target-directory=DIRECTORY move all SOURCE arguments into DIRECTORY -T, --no-target-directory treat DEST as a normal file -u, --update move only when the SOURCE file is newer than the destination file or when the destination file is missing -v, --verbose explain what is being done --help display this help and exit --version output version information and exit |
3
xdeng 2013-05-30 18:48:47 +08:00
@elvba 忘了 你直接进DX30_R20130524_SC_UTF8/ 然后 mv * ../upload 我以前是吧 DZ解压后进去
1 upload mv * ../ 2 cd .. 3 rm upload -rf 这样 |
4
xdeng 2013-05-30 18:49:43 +08:00
0 cd upload
1 mv * ../ 2 cd .. 3 rm upload -rf |
5
elvba OP @xdeng 你没看明白我的问题,并不是把upload文件里的内容移动到上层文件夹,我想把补丁里的文件覆盖到DZ的upload文件夹里。
进入DX30_R20130524_SC_UTF8/ 然后 mv * ../upload 和 mv DX30_R20130524_SC_UTF8/* upload/ 是一个意思。 |
6
swulling 2013-05-30 19:09:39 +08:00
用cp -r替代mv
|
7
lequiet 2013-05-31 01:16:45 +08:00
额。。。我也纠结这问题很久了,我用的是Mac,一直开windows xp虚拟机拷贝去覆盖,
因为网游要补丁升级,也需要这种方式的补丁覆盖。据同事说cp -r有时不靠谱所以没试用= =。 |