I wrote this code and did not know what did I do wrong ??
## get the first line of this file
AFIRST=$(head -1 rss-cs-3423a-20051211-060001.dat)
#
CJKA|2005-12-10 08.01.30.000000|1111111111|ECI|1112221111|1113331111|1114441111 <--- this is a answer
## Third line of stat file
BTHREE=$(cat rss-cs-3423a-20051211-060001.stat | sed -n 3p)
#
CJKA|2005-12-10 08.01.30.000000|1111111111|ECI|1112221111|1113331111|1114441111
<--- this is a answer, both of them the same
### Compare AFIRST and BTHREE
if [[ $AFIRST = $BTHREE ]];
then
print "First record is matched"
else
print "First record is not matched"
fi
====
Why I get the answer is The First Record is not matched ??? syntax error ?
Please help me