views:

24

answers:

3

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 parsing 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

+1  A: 

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

ls *.jpg | while read i; do svn move "$i" ../; done
William
Or the shorter `for i in *.sql; do svn move $i ../; done` (_Front Against Useless Use Of Pipe_)
Wrikken
A: 

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.

splash
A: 

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.

khmarbaise