#!/bin/bash for ((i=1; i<10; i++));do for ((n=10; n>=i; n--));do echo -n " " done for ((m=1; m<=i; m++));do echo -n "* " done echo done