daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 47 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. diff -r
  2.    --exclude="*~"
  3.    --exclude=".svn"
  4.    --exclude=".git"
  5.    --exclude="*.zip*"
  6.    --exclude="*.gz"
  7.    --exclude="*.tar"
  8.    ...etc
  9.    
  10. $ find ONE TWO -type f -print
  11. ONE/a/1.txt
  12. ONE/a/2.txt
  13. ONE/a/b/2.txt
  14. TWO/a/1.txt
  15. TWO/a/2.txt
  16. TWO/a/b/2.txt
  17.    
  18. $ find ONE -type f ( ! -regex 'ONE/a/2.txt' )
  19.     -exec bash -c 'diff -q "${1}" "${2/ONE/TWO}"' - {} {} ;
  20.    
  21. diff -q ONE/a/1.txt TWO/a/1.txt
  22. diff -q ONE/a/b/2.txt TWO/a/b/2.txt
  23.    
  24. $ find ONE ( -regex 'ONE/a/2.txt' -o -name b  -prune )  
  25.     -o -type f -exec bash -c 'echo diff -q "${1}" "${2/ONE/TWO}"' - {} {}
  26.    
  27. diff -r <src-dir> <dest-dir> | grep -v directory/sub-directory
  28.    
  29. $ diff -rq foo.orig foo | grep -vP 'ignore1/|exclude2/' | awk '{print $2}' | cut -d'/' -f2- | xargs -I{} diff -u foo.orig/{} foo/{}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top