The terminal is a command-line interface for interacting with a computer, a way of working with a machine pioneered in the 1960s and still widely used today. Almost anything that can be done with your graphical-user-interface operating system can also be done with the command line.
for value in 1 2 3 4 5 do echo Current number is $value sleep 2 doneprint out 1 2 3 4 5 waiting 2 seconds between each
for url in http://softslow.com http://burymewithmymoney.com https://www.youtube.com/watch?v=dQw4w9WgXcQ do start $url sleep 3 doneopen the listed urls with a 3 second pause between
while : do echo This is the song that never ends donean infinite loop, you will need to hit control-c to stop it
To run a script regularly at a certain time or certain frequency, you will need to use a cron job (mac/linux) or scheduled task (windows)