Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mkdir -p /tmp/dir1/a\ subdir
- echo good > /tmp/dir1/foo
- echo yes > /tmp/dir1/so\ long\ file\ name\ with\ spaces
- echo bar > /tmp/dir1/a\ subdir/bar
- mkdir -p /tmp/dir\ 2/a\ long\ name\ for\ a\ subdir
- echo good > /tmp/dir\ 2/a\ long\ name\ for\ a\ subdir/The\ Bar
- echo yes > /tmp/dir\ 2/a\ long\ name\ for\ a\ subdir/The\ Foo
- echo bar > /tmp/dir\ 2/cool
- find /tmp/dir1/ -type f -exec md5sum "{}" \; |cut -d\ -f1 |sort > /tmp/hashes_dir1
- find /tmp/dir\ 2/ -type f -exec md5sum "{}" \; |cut -d\ -f1 |sort > /tmp/hashes_dir2
- diff /tmp/hashes_dir1 /tmp/hashes_dir2
- # no output
Advertisement
Add Comment
Please, Sign In to add comment