sync svn working copy and remote repository (auto adding new files)

svn status | grep '^?' | awk '{ print $2; }' | xargs svn add
Lists the local files that are not present in the remote repository (lines beginning with ?) and add them.
Sample Output
$ svn status | grep '^?'
?      INFO
?      src/svn-commit.tmp
?      src/game/
?      src/game/character/

$ svn status | grep '^?' | awk '{ print $2; }' | xargs svn add
$ svn ci

A      INFO
A      src/svn-commit.tmp
A      src/game/
A      src/game/character/

2009-04-10 21:55:37

What Others Think

svn add --force .
daithif · 683 weeks and 3 days ago
don't grep+awk awk ' /^?/ {print $2;}'
ioggstream · 672 weeks ago
The code is beyond my comprehension and I don't know how to solve them, how to write them, I don't know coding at all but I do know one thing about the best online slots and casinos for gaming lovers that you can get it from here There are slot fans available in worlds, so you can go to this website once and get all information.
Kaitlinfulton · 25 weeks and 5 days ago
seofox · 25 weeks and 3 days ago
Thanks for sharing this post. But I am a casino lover and I want to know where country betting is legal. Because I am Indian, I don't know about this. But Now I Get More Info about this. So I hope so, You will understand and like this
shelbylpeters · 11 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: