17 lines
307 B
Bash
Executable file
17 lines
307 B
Bash
Executable file
#!/bin/bash
|
|
|
|
clear
|
|
|
|
WIDTH=$(tput cols)
|
|
HEIGHT=$(tput lines)
|
|
NUMBARS=8
|
|
BARWIDTH=$(expr $WIDTH / $NUMBARS)
|
|
|
|
for (( y = 0; y < $HEIGHT; y++ )); do
|
|
for (( n = 0; n < $NUMBARS; n++ )); do
|
|
for (( x = 0; x < $BARWIDTH; x++ )); do
|
|
echo -en "\e[3"$n"m█"
|
|
done
|
|
done
|
|
echo
|
|
done
|