Skip to content

Instantly share code, notes, and snippets.

@joemccann
Created October 12, 2010 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemccann/622939 to your computer and use it in GitHub Desktop.
Save joemccann/622939 to your computer and use it in GitHub Desktop.
svn st | grep "^?" | awk '{ print $2}' | while read f; do svn add "$f"; done
@Pointy
Copy link

Pointy commented Oct 12, 2010

Shorter one:

 svn st | awk '/^\?/ { print "svn add " $2 }' | sh

but neither of ours deal with files whose names contain spaces

@joemccann
Copy link
Author

Ooo, nice, but yeah, good point on the filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment