Single line simple bash shell clock

This could be useful when:

  • you want to know what time is it
  • you want to know exactly when the PC/board is hang
while true; do echo -e -n "\r`date`"; sleep 1; done