Skip to content

Instantly share code, notes, and snippets.

@celsobessa
Last active July 3, 2021 19:43
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 celsobessa/5dd651f1a2bd7b29f902fbe32f0ffad1 to your computer and use it in GitHub Desktop.
Save celsobessa/5dd651f1a2bd7b29f902fbe32f0ffad1 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Do not forget to run `chmod +x ./open-list-of-urls-macos.sh` in order
# to make your script executable
# after that type `./open-list-of-urls-macos.sh ./text-file-with-list-of-urls.extension`
# you will need to change `./open-list-of-urls-macos.sh` to the location of your script
# and `./text-file-with-list-of-urls.extension` to the location of your url list.
# For example:
# `./tools/open-list-of-urls-macos.sh ./misc/text-file-with-list-of-urls.txt`
FILE=$1
while read LINE; do
open $LINE
echo "URL $LINE open"
done < $FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment