hi all,
I want to run the following script :
dt=`date +%d/%m/%y`
echo $dt
mm="04/10/03"
echo $mm
if [ "04/010/03"=="15/10/03" ]
then
echo "hi "
else
echo "no"
fi
but i get the result as "hi" but expected is "no"
what is the prob with current script
I have used different Operator as "-eq" and "==" but still result remains same
pls help
TIA
Mangesh
I want to run the following script :
dt=`date +%d/%m/%y`
echo $dt
mm="04/10/03"
echo $mm
if [ "04/010/03"=="15/10/03" ]
then
echo "hi "
else
echo "no"
fi
but i get the result as "hi" but expected is "no"
what is the prob with current script
I have used different Operator as "-eq" and "==" but still result remains same
pls help
TIA
Mangesh