Created
December 28, 2011 09:23
-
-
Save FGtatsuro/1527295 to your computer and use it in GitHub Desktop.
remove files related to svn + show diff between treeA and treeB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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