#/bin/bash
file1=/mnt/mmc/test/aa
file2=/mnt/mmc/test/bb
diff $file1 $file2 > /dev/null
if [ $? == 0 ]; then
echo "Both file are same"
else
echo "Both file are different"
fi
#/bin/bash
file1=/mnt/mmc/test/aa
file2=/mnt/mmc/test/bb
diff $file1 $file2 > /dev/null
if [ $? == 0 ]; then
echo "Both file are same"
else
echo "Both file are different"
fi
本文标题:判断两个文件是否相同
本文链接:https://www.haomeiwen.com/subject/zscymhtx.html
网友评论