This is not a homework by anyway to start with this part of a program I'm working on. what I'm trying to do is to print this shape using bash loops.
********
****
**
This is what I have so far, it will print the shape, but I'm trying to find a way jut to use on echo statement, so for example if I put Var="8" and then decrement var by 2 and print them on the same line. Any help is welcomed thanks
#!/bin/bash
COUNTER="1"
until [ $COUNTER -lt 1 ]; do
echo "**********"
echo " ******** "
echo " ****** "
echo " **** "
echo " ** "
let COUNTER-=1
done