panjang 2

length=2
echo ${name:0:length}  #=> "Jo"
Nicolas Chaillou