read -d! n s p for i in $p;{ printf ${s:i-1:1} }