How to check the first character in a string in Bash or UNIX shell? How to check the first character in a string in Bash or UNIX shell? bash bash