How do I pause my shell script for a second before continuing?
Asked 07 September, 2021
Viewed 2.9K times
  • 56
Votes

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?

10 Answer