1. #!/bin/bash
    2. while :
    3. do
    4. clear
    5. for i in {1..20}
    6. do
    7. echo e "\033[3;${i}H*"
    8. sleep 0.1
    9. done
    10. clear
    11. for i in {20..1}
    12. do
    13. echo e "\033[3;${i}H*"
    14. sleep 0.1
    15. done
    16. clear
    17. done