View difference between Paste ID: H0jFtYy0 and 1r653NHE
SHOW: | | - or go back to the newest paste.
1
read i
2
p=0
3
d=1
4
printf '\n%.0s' `seq $i`
5
for l in {A..Z};do
6-
((p==i+1))&&((p*=-1))
6+
((p>i))&&((p*=-1))
7
((i==1))&&p=0
8
((p))&&echo -en "\033[s\033[${p#-}A"
9
[[ $l == B ]]&&l=Bash
10
echo -en $l"\033[s\033[${p#-}B"
11
((p++))
12
done