1 2 3 4 5 6 7 8 9 10
#!/bin/bash # Display a clock in the terminal with hours, minutes, seconds and # milliseconds while : do echo -ne "$(date +%T.%3N)\r" sleep .001 done