I am trying to check if a string begins with a particular string. But the below code is not working.
// set @test_date = '123456'
if [[ $var == "set @test_date =*" ]]; then
echo "true"
else
echo "false"
fi
I found the similar question here, but it not working for me
Thanks