Skip to content

Instantly share code, notes, and snippets.

@pedropuppim
Created January 28, 2023 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedropuppim/fd36cfad43f2a4f49794bbe1855b97ce to your computer and use it in GitHub Desktop.
Save pedropuppim/fd36cfad43f2a4f49794bbe1855b97ce to your computer and use it in GitHub Desktop.
script_loop.bash
#!/bin/bash
for i in {1..5}
do
URL="https://dummyjson.com/products/$i"
response=$(curl -s $URL)
echo $response
printf "\n"
sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment