http://tldp.org/guides.html - look for Advanced Bash scripting guide. ksh might be a bit different though.
There is an entire section on string manipulation in that guide.
alphas="abcdefg";echo $
will print de
, i.e. two chars, starting with the fourth (0 is the first) from $alphas.