I need to check if a word is starting with ">" character or not
for example A=">abcd" should return true, B="assdf" should not.
I Tried the following snippets but it does not work
if [ "$A" == "\>*" ]; then
echo "True"
fi
The following does not work also
A=">dfssdfsd"
if [[ "$A" =~ "\>*" ]]; then
echo "aaa"
fi
Thank you