First commit

This commit is contained in:
Sayantan Santra 2020-01-19 17:51:18 +05:30
commit 4b85779426

10
checkintegrity Executable file
View file

@ -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