Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. $ export LC_ALL=C
  2. $ echo "hello man" > a.txt
  3. $ echo "hello yoda" > b.txt
  4. $ md5sum *.txt > checksum.md5
  5. $ md5sum -c --status checksum.md5 && echo "all files are ok"
  6. all files are ok
  7. $ echo 'modified!' >> b.txt
  8. $ md5sum -c checksum.md5
  9. a.txt: OK
  10. b.txt: FAILED
  11. md5sum: WARNING: 1 computed checksum did NOT match
  12. $ md5sum -c --status checksum.md5 && echo "all files are ok"
  13. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement