Skip to content

Instantly share code, notes, and snippets.

@konecnyna
Created June 8, 2022 12:08
Show Gist options
  • Save konecnyna/aee417d7c146506053592b9f308a5c0d to your computer and use it in GitHub Desktop.
Save konecnyna/aee417d7c146506053592b9f308a5c0d to your computer and use it in GitHub Desktop.
#!/bin/bash
MIN_RANGE=1
MAX_RANGE=125
# Update 'url' var to url and move i to the dynamic range.
for (( i = $MIN_RANGE; i <= $MAX_RANGE; i++ ))
do
url="www.google.com/$i/foo/bar"
echo "Running cmd: curl $url"
# As long as the browser is already logged in this should work
open "$url"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment