Hi
I tried the below code where it is working properly
#!/bin/ksh
set -x
date1_data=abc.txt
date2_data=bcd.txt
if diff $date1_data $date2_data >/dev/null ; then
echo "Equal"
else
echo "Not Equal"
fi
Then I tried like below where i want to use only if fi not else part
#!/bin/ksh
set -x
date1_data=abc.txt
date2_data=bcd.txt
if not diff $date1_data $date2_data >/dev/null ; then
echo "NotEqual"
fi
The above code is giving the error saying
not: not found
Please advice me where the script is wrong