#!/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