Skip to content

Instantly share code, notes, and snippets.

@6desislava6
Last active April 12, 2016 08:11
Show Gist options
  • Save 6desislava6/e3c699140a4a8b4a7a6f9536854c05c8 to your computer and use it in GitHub Desktop.
Save 6desislava6/e3c699140a4a8b4a7a6f9536854c05c8 to your computer and use it in GitHub Desktop.
#!/bin/bash
draw_symbols(){
for k in $(seq $1 -1 0)
do
echo -n "$2"
done
}
symbol='*'
space=' '
for i in $(seq $1 -1 1)
do
draw_symbols $(($1 - $i)) 'a'
draw_symbols $i "$symbol"
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment