commit 4b85779426788064f1e891c9ba0ac36593342db3 Author: SinTan1729 Date: Sun Jan 19 17:51:18 2020 +0530 First commit diff --git a/checkintegrity b/checkintegrity new file mode 100755 index 0000000..6d0f9af --- /dev/null +++ b/checkintegrity @@ -0,0 +1,10 @@ +#!/bin/bash + +f=$1 +f+="sum $2 | cut -d ' ' -f1" + +if [ $(eval $f) = "$3" ]; then + echo "$2 is fine." +else + echo "$2 is corrupted!" +fi