Guest User

diff demo

a guest
Jun 12th, 2013
219
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-4.2$ diff <(seq 10) <(seq 10|sed '4,7s/$/+/')
  2. 4,7c4,7
  3. < 4
  4. < 5
  5. < 6
  6. < 7
  7. ---
  8. > 4+
  9. > 5+
  10. > 6+
  11. > 7+
  12.  
  13. bash-4.2$ diff -y <(seq 10) <(seq 10|sed '4,7s/$/+/')
  14. 1 1
  15. 2 2
  16. 3 3
  17. 4 | 4+
  18. 5 | 5+
  19. 6 | 6+
  20. 7 | 7+
  21. 8 8
  22. 9 9
  23. 10 10
  24.  
  25. bash-4.2$ diff -y --suppress-common-lines <(seq 10) <(seq 10|sed '4,7s/$/+/')
  26. 4 | 4+
  27. 5 | 5+
  28. 6 | 6+
  29. 7 | 7+
RAW Paste Data