Home ›
SVN add for all un-added filesSVN add for all un-added files
Submitted by Benjamin Melançon on May 1, 2007 - 4:10am
svn status | grep "^\?" | awk '{print $2}' | xargs svn add
And much less pretty, but for files with spaces in them:
svn status | grep "^\?" | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add
from http://lukewarmtapioca.com/2005/6/1/adding-all-new-files-with-svn
svn status | grep "^\?" | awk '{print $2}' | xargs svn add
And much less pretty, but for files with spaces in them:
svn status | grep "^\?" | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add
from http://lukewarmtapioca.com/2005/6/1/adding-all-new-files-with-svn
Comments
short and pretty
I haven't tested it, but I'm pretty sure this should work for files with spaces in:
svn status | grep "^\?" | awk '{print "\""$2"\""}' | xargs svn add
Post new comment