How to execute a command repeatedly using bash
How to execute a command repeatedly using bash
Answer:
The following simple bash script will run the echo command, sleep 10 seconds repeatedly.
#!/bin/bash
while [1];
do
echo "Hello!";
sleep 10;
done
Related posts:
- How to measure the time needed to execute a command
- How to perform syntax check on a bash script?
- How to get the PID in current bash shell script
- Convert IP address to HEX in Bash script
- How to mass rename file in Bash
Post a Comment