开发者

Move all files of certain file type using SVN

I have a directory full of image files. I want to move all the .jpg files one directory up

$svn move *.jpg ../ 
$svn: Client error in parsin开发者_如何转开发g arguments

As you can see this approach doesn't work.

If this isnt possible how do I move ALL the files up one directory?

SVN version 1.4.4 on OSX 10.5


You'll need some shell script to do this, e.g.

ls *.jpg | while read i; do svn move "$i" ../; done


As far as I understand from the manual you can't do this with pure svn. If you want to move/copy all files, then must move/copy the directory.


You could do this with 1.5/1.6 client but not with 1.4 never the less you have to quote the parameters to prevent the shell to expand the parameters.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜