SyntaxFix
Write A Post
Hire A Developer
Questions
In bash you can try this:
stringZ=abcABC123ABCabc # 0123456789..... # 0-based indexing. echo ${stringZ:0:2} # prints ab
More samples in The Linux Documentation Project