I would like to check if the value I am testing starts with the letter B.I tried
if [ ^$val ==?B? ]; then
echo ?start with B?
echo ?Does not start with B?
But this does not work, it always goes to the else part even though the val is a string starting with B