Sleep infinitely in bash
I am sure that you would have got a lot of instances where you have wanted to sleep for infinity and ended up doing this
|
|
or some other such similar loop to sleep for some time and wrap it in infinite loop.
I learned something new recently and found it very useful. You can do the above with
|
|
and you can use that even for a while loop
|
|
Enjoy 👍
Related Articles:
- 2021/12/11 Ignore case when completing file names in bash
- 2020/08/30 Warn when battery is low
- 2020/08/23 Some good find alias.
- 2020/08/16 Books menu with bash
- 2019/12/02 i3 – show mapped hotkeys
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.