# Just the first character is printed. # ------------------------------------------------------- # # I first try: i=1 T=1 sp="/-\|" echo -n ' ' while true # [[ T != 1 ]] # <--- I try using this instead of 'true' but no luck either do #echo '.'; sleep 2 ; echo -en "\b${sp:i++%${#sp}:1}" md5sum ./*.iso >> ~/Desktop/Gigantic_verified.md5 T=1 done echo -ne "\nDone : )\n\n\t" # ------------------------------------------------------- # # Then I try: T=1 while [[ T != 1 ]] ; do echo '.'; sleep 2 ; md5sum ./*.iso >> ~/Desktop/Gigantic_verified.md5 T=1 done echo -ne "\nDone : )\n\n\t" # ------------------------------------------------------- # # Then I try: sp="/-\|" sc=0 spin() { while true [[ T != 1 ]] do echo -en "\b${sp:i++%${#sp}:1}" done } #echo '.'; sleep 2 ; md5sum ./*.iso >> ~/Desktop/Gigantic_verified.md5 T=1 #done echo -ne "\nDone : )\n\n\t"