Guest User

Untitled

a guest
Jun 18th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. mkdir -p /tmp/dir1/a\ subdir
  2. echo good > /tmp/dir1/foo
  3. echo yes > /tmp/dir1/so\ long\ file\ name\ with\ spaces
  4. echo bar > /tmp/dir1/a\ subdir/bar
  5.  
  6. mkdir -p /tmp/dir\ 2/a\ long\ name\ for\ a\ subdir
  7. echo good > /tmp/dir\ 2/a\ long\ name\ for\ a\ subdir/The\ Bar
  8. echo yes > /tmp/dir\ 2/a\ long\ name\ for\ a\ subdir/The\ Foo
  9. echo bar > /tmp/dir\ 2/cool
  10.  
  11. find /tmp/dir1/ -type f -exec md5sum "{}" \; |cut -d\ -f1 |sort > /tmp/hashes_dir1
  12. find /tmp/dir\ 2/ -type f -exec md5sum "{}" \; |cut -d\ -f1 |sort > /tmp/hashes_dir2
  13. diff /tmp/hashes_dir1 /tmp/hashes_dir2
  14. # no output
Advertisement
Add Comment
Please, Sign In to add comment