Skip to content

Instantly share code, notes, and snippets.

@FGtatsuro
Created December 28, 2011 09:23
Show Gist options
  • Save FGtatsuro/1527295 to your computer and use it in GitHub Desktop.
Save FGtatsuro/1527295 to your computer and use it in GitHub Desktop.
remove files related to svn + show diff between treeA and treeB
sh tree_diff.sh
svn_dir=`diff ./tmp1 ./tmp2 | egrep "\/\.svn\/" | cut -c 2- | sed -e "s/\(.*\/\.svn\/\).*/\1/g" | uniq`
for i in $svn_dir; do
ls -ald $i
rm -rf $i
done
first=$1; second=$2; ls -Ra $first > ./tmp1; ls -Ra $second > ./tmp2; diff ./tmp1 ./tmp2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment