Check if string starts with $ symbol

How do I check that a string $AA22CC3 starts with the "$" symbol ?

I have tried :

checksum='$AAB3E45'
echo $checksum


case $checksum in 
$* ) echo success ;
esac

Thanks ...

try \$

Do you know how to escape characters that have special meaning to the shell...

Escape the dollar sign.

\$* ) echo success ;
1 Like

Thanks MacMonster, escape did the trick