I need to check if the variable has value of string which starts with specified substring.
In Python it would be something like this:
foo = \'abcdef\
Also:
foo='abcdef' pattern='abc*' case "$foo" in $pattern) echo startswith ;; *) echo otherwise ;; esac