Compare hashes when verifying files via md5
Given a file and its md5 hash, a quick way to verify the file is to use grep to compare the hashes.
md5sum <file> | grep -i <hash>
e.g.
md5sum SuperNexus-2.0-i9100-BUILD3.zip | grep -i BB7E732FD0090F3ABD3D868C3F2F0C4F
bb7e732fd0090f3abd3d868c3f2f0c4f SuperNexus-2.0-i9100-BUILD3.zip
If you see an output line then the hashes are the same (case insensitive) and the file is verified correctly. If there’s no output, that means the hashes don’t match and the file is not valid.