Up and Down by tails

IFS=
declare -A a
eval c=\$\'\\{,1}{0..7}{0..7}\'';eval a{[\${b,b\ ,c-,a+}],}=\$b;b=$c'
while read -n1 c;do s[l]=${a[${s[l]}$c]};l=${c:+$l+1};done
echo "${s[*]}"

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page