Tech C**P
14 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
In os x you can use repeat command to repeat a command! If you want to send multiple get request using cURL:
repeat 10 curl https://www.google.com

In Linux we can do the same using for loop:
for i in {1..12}; do echo 'test'; done

#osx #linux #repeat #for
Run a linux command multiple times:

for i in `seq 10`; do command; done


Or equivalently, using the Bash builtin for generating sequences:

for i in {1..10}; do command; done

#linux #bash #seq #repeat