Skip to content

Instantly share code, notes, and snippets.

@stevenswafford
Last active May 9, 2022 07:57
Show Gist options
  • Save stevenswafford/e5696dd3d2b417955ede to your computer and use it in GitHub Desktop.
Save stevenswafford/e5696dd3d2b417955ede to your computer and use it in GitHub Desktop.

Revisions

  1. stevenswafford revised this gist Jun 3, 2015. 1 changed file with 0 additions and 17 deletions.
    17 changes: 0 additions & 17 deletions curl_download.sh
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,7 @@
    #!/bin/bash

    # Script Name : curl_download.sh
    # Author : Steven Swafford
    # Created : April 2015
    # Last Modified :
    # Version : 1.0

    # Modifications :

    # Description : Download files using curl.

    # It is all fun and games until someone gets hacked!
    # _ _
    # _ /|| . . ||\ _
    # ( } \||D ' ' ' C||/ { %
    # | /\__,=_[_] ' . . ' [_]_=,__/\ |
    # |_\_ |----| |----| _/_|
    # | |/ | | | | \| |
    # | /_ | | | | _\ |

    echo "Enter the name of your flat file: "
    read input_variable
    echo "You entered: $input_variable"
  2. stevenswafford revised this gist Jun 3, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion curl_download.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    # Script Name : dnsmap.py
    # Script Name : curl_download.sh
    # Author : Steven Swafford
    # Created : April 2015
    # Last Modified :
  3. stevenswafford created this gist Jun 3, 2015.
    32 changes: 32 additions & 0 deletions curl_download.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    #!/bin/bash

    # Script Name : dnsmap.py
    # Author : Steven Swafford
    # Created : April 2015
    # Last Modified :
    # Version : 1.0

    # Modifications :

    # Description : Download files using curl.

    # It is all fun and games until someone gets hacked!
    # _ _
    # _ /|| . . ||\ _
    # ( } \||D ' ' ' C||/ { %
    # | /\__,=_[_] ' . . ' [_]_=,__/\ |
    # |_\_ |----| |----| _/_|
    # | |/ | | | | \| |
    # | /_ | | | | _\ |

    echo "Enter the name of your flat file: "
    read input_variable
    echo "You entered: $input_variable"

    #create urls variable array
    declare urls=( `cat "$input_variable" `)

    #Download files from URL list
    for m in "${urls[@]}"
    do curl -O "$m"
    done