You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
263 B

function prettyPrint {
str=$1
strarr=()
for (( i=0; i<${#str}; i++ )); do
strarr+=(`printf '%d\n' "'${str:$i:1}"`)
done
for ((i=0;i<$height;i++)) do
for j in "${strarr[@]}"; do
printf "%s" "${a["$j,$i"]}"
done
printf "\n"
done
}
prettyPrint $1