Add new files to SVN

This is a fairly common issue and one that I have run into on more than a couple of occasions. How do you add new files to an SVN project without running the add command for every file/directory?

You use this clever one line script that I found at Snipplr:

svn status | grep "^\?" | awk '{print $2}' | xargs svn add

And as long as your file names don’t have spaces in them the script will add them recursively to your SVN project. By the way if you have spaces in your file names then you are being silly. :P