1 2 3 4 5 6 7 8 9
#!/bin/sh len=1 f=foo echo "${f:1}" # BASHISM echo "${f:$len}" # BASHISM echo "${f:$len$len}" # BASHISM echo "${f:${len}}" # BASHISM