Archive for July, 2009

Using awk to add new files to svn

Friday, July 17th, 2009
svn add `svn status | grep "^?" | awk '{print $2 }'`

you can also use grep -v to exclude specific files

svn add `svn status | grep "^?" | awk '{print $2 }' | grep -v prefs.inc.php`