This question is probably quite easy but I don't know how to accomplish this.
I want to verify a file using
md5sum -c file.md5. I can do that by hand, but I don't know how to check the validity in a script. I hope you could help me?
You can use
To make things cleaner, you can add
Shorter forms work just as well if appropriate: