Keep showing the current second BASH shell script .sh

Asphyxia

Owner
Administrator
Apr 25, 2015
1,845
2
2,199
327
Code:
while :; do date & sleep 1; done

This could be useful if you are running a cron job each minute and just want to see what the current second is.

Just Ctrl+C to stop this while loop from running and printing the current date (including seconds)
 
Top