Daily Archives: 05.07.2021
Shell: repeat a task multiple time
All shells (bash/zsh):
1 |
watch -n 3 "curl --location --request GET 'http://...'" |
will run curl every 3 seconds until you break it. zsh specific:
1 |
repeat 5 { curl --location --request GET 'http://...' } |
will repeat it 5 times without any delay