Trick for Subversion

Translation of the original in Catalan. Read it in: CatalàCastellano

I had not written anything technical for a while, so to whet your appetite here comes a little trick for Subversion.

If you are command line SVN users, when you are programming a project and you do not know which files you have not uploaded to the repository you know you can run a:

svn status

And that shows you a list of the files that have been modified and of those that have not been added to the repository, so now comes a little script to add them all at once:

for F in $(svn status | grep "?" | cut -c 8-);
do
  svn add $F;
done

Now we can already do a commit and I do not have to go through all the directories and files to add them to the repository.