How do I pause my shell script for a second before continuing?
I have only found how to wait for user input. However, I only want to pause so that my while true
doesn't crash my computer.
I tried pause(1)
, but it says -bash: syntax error near unexpected token '1'
. How can it be done?