Skip to content

Instantly share code, notes, and snippets.

@celsobessa
Last active July 3, 2021 19:43
Show Gist options
  • Save celsobessa/5dd651f1a2bd7b29f902fbe32f0ffad1 to your computer and use it in GitHub Desktop.
Save celsobessa/5dd651f1a2bd7b29f902fbe32f0ffad1 to your computer and use it in GitHub Desktop.

Revisions

  1. Celso Bessa revised this gist Jul 3, 2021. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion open-list-of-urls-macos.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,13 @@
    #!/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
    done < $FILE
  2. Celso Bessa revised this gist Jul 2, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion open-list-of-urls-macos.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    #!/bin/bash
    FILE=$1
    while read LINE; do
  3. Celso Bessa created this gist Jul 2, 2021.
    7 changes: 7 additions & 0 deletions open-list-of-urls-macos.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@

    #!/bin/bash
    FILE=$1
    while read LINE; do
    open $LINE
    echo "URL $LINE open"
    done < $FILE