1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env lua -- run <script> while true do os.execute("clear") print(os.date():match("(%S*:%S*)")) if not os.execute("sleep 1") then break end end