Skip to content

Instantly share code, notes, and snippets.

@jcode
Created October 19, 2010 11:21
Show Gist options
  • Save jcode/634042 to your computer and use it in GitHub Desktop.
Save jcode/634042 to your computer and use it in GitHub Desktop.
SVN tools
# Add recursively
svn status | grep "^\?" | awk '{print $2}' | xargs svn add
# Clean .svn files
find . -type d -name ‘.svn’ | xargs rm -rf
# Rsync folders
rsync -ruv --exclude=.svn ../themes themes
# Recursively rename file extentions with SVN
for file in `find . -name "*.html.erb"` ; do svn mv $file `echo $file | sed s/\.html.erb/\.erb/` ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment