~chambln/dots

eba4c9beab73367da23c7f30da052853cdf41887 — Gregory Chamberlain 14 days ago d9a77fe
sh: Don’t print line numbers with triangle script
1 files changed, 1 insertions(+), 1 deletions(-)

M sh/bin/triangle
M sh/bin/triangle => sh/bin/triangle +1 -1
@@ 9,5 9,5 @@

n=$1 i=0 s=0
while [ "$i" -lt "$n" ] && i=$((i+1)) && s=$((s+i))
do printf "%${#n}d %d\n" "$i" "$s"
do printf '%d\n' "$s"
done