• 16
  • Oct, 08

SVN batch commands for adding or deleting multiple files (Linux)

Here are a few little hints that may help speed up your SVN workflow if you are using SVN in a Linux environment. I found the first one on Snipplr and used that to create the second one for myself.

  1. Deleting multiple missing files (ie. the ones with a “!” next to them):
    svn delete $( svn status | sed -e '/^!/!d' -e 's/^!//' )
  2. Adding multiple new files (ie. the ones with a “?” next to them):
    svn add $( svn status | sed -e '/^?/!d' -e 's/^?//' )
Share and Enjoy:
  • Digg
  • Reddit
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Technorati
  • TwitThis
  • E-mail this story to a friend!

One Response

  1. The first one returns the following error:

    svn: invalid option character: f

Leave a Reply

Car Humor | U2 News