By abhishek | Wed, 09/15/2010 - 14:33 Add new comment Search files in subdirectories and add them to SVN recursively svn status | grep "^\?" | awk '{print $2}' | xargs svn add Requesting unix command In unix, how to delete and copy subversion .svn folders? Reply sudo rm -R .svn sudo rm -R .svn Reply you may try this one: find . you may try this one: find . -name '.svn' | xargs rm -rf Reply Spaces cause issues Thanks for the command. I tried it and it works great except when I was trying to process directories and filenames with spaces. I made a couple of minor alterations to your command and came up with the following. svn status | grep "^\?" | sed 's/^\? \+//' | sed 's/ /\\ /' | xargs svn add Cheers Reply Simplier Try this: svn add --force DIR/* Reply Thanks Thanks, did the trick for me. Reply svn code tip
Spaces cause issues Thanks for the command. I tried it and it works great except when I was trying to process directories and filenames with spaces. I made a couple of minor alterations to your command and came up with the following. svn status | grep "^\?" | sed 's/^\? \+//' | sed 's/ /\\ /' | xargs svn add Cheers Reply
Requesting unix command
In unix, how to delete and copy subversion .svn folders?
sudo rm -R .svn
sudo rm -R .svn
you may try this one: find .
you may try this one:
find . -name '.svn' | xargs rm -rf
Spaces cause issues
Thanks for the command. I tried it and it works great except when I was trying to process directories and filenames with spaces.
I made a couple of minor alterations to your command and came up with the following.
svn status | grep "^\?" | sed 's/^\? \+//' | sed 's/ /\\ /' | xargs svn add
Cheers
Simplier
Try this: svn add --force DIR/*
Thanks
Thanks, did the trick for me.