svn st | grep "^?" | awk -F " " '{print $2}' | xargs svn add
Can be modified to do a svn delete on files you accidentally rm -rf'ed:
svn st | grep "^!" | awk -F " " '{print $2}' | xargs svn delete
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
svn st | grep "^?" | awk -F " " '{print $2}' | xargs svn add
svn st | grep "^!" | awk -F " " '{print $2}' | xargs svn delete
You need to create an account or log in to post comments to this site.
» Add all new files to Subversion in awk grep svn bash subversion
» View processes, grep out by ... in awk ps sysadmin grep kill
» knowning how many commits it... in svn subversion
» Finding files to be added in svn subversion
» Enable svn+ssh remote logins in ssh svn osx subversion cli
» Update All of the SVN Versio... in shell svn bash subversion
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails
My solution:
Which adds:
This mimicks the -print0 behavior of the find command.