bashInfinite while loop
while true; do echo hi; sleep 1; done
ctrl + c
echo hi; sleep 1 replace this with your code, that should run forever |
More of Bash
- Binet's Formula in bash
- How to check if a string starts with a specific value
- Quickly create big file
- How to assign an output of a command to a variable
- How to extract file extension
- How to extract file name
- Urlencode string in bash
- Check if a string contains a substring
- How to check if a command exists
- How to check if variable is set or unset
See more codes...