need help im use this script for MD5SUM
#export file different server
export FILES=`sshpass -p sys0ra ssh -o StrictHostKeyChecking=no oracle@10.20.30.01 ls -th /dump/20171217`
export FILES2=`sshpass -p sys0ra ssh -o StrictHostKeyChecking=no oracle@192.168.0.01 ls -th /dump2/20171217`
#the main for loop execution starts here.
for entry in "$FILES"
do
filename=$(basename "$entry")
filename2=$(basename "$entry2")
echo "File Name: $filename"
echo "File Name: $filename2"
#calculate md5sum
server1_md5sum=$(md5sum "$entry")
echo "Server 1 MD5Sum: $server1_md5sum"
server2_md5sum=$(md5sum "$FILES2")
echo "Server 2 Md5sum: $server2_md5sum"
read -p "pause"
done
please help ...
i exec this query but md5sum cant look path export and export2