run code program on terminal every x time (seconds)
In order to run any command or program every X seconds or any time from your Mac terminal, you can utilize a shell loop with the sleep command.
AI stuff for devs, one bite at a time
In order to run any command or program every X seconds or any time from your Mac terminal, you can utilize a shell loop with the sleep command.
If you print or log bunch of data in Terminal (Iterm) normally, you can't scroll back to your latest command. Here is how to do it