b='2 3 4 5 8 5 4 3 2' a=${b//[^ ]/0}\ c=${a//0/1} echo "$b 0 7${a:7} 6 0 $c $a $a $a $c 0 6 ${a:7}7 0 $b"
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page