Last active
March 25, 2020 05:04
-
-
Save so77id/fa4c5360d1efc9645d80a7ca8882e423 to your computer and use it in GitHub Desktop.
used in naxnet code review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ "$#" -eq 0 ]; then | |
| myArray=( ) | |
| else | |
| urls=( $1 ) | |
| names=( $2 ) | |
| src=$3 | |
| fi | |
| for ((i=0;i<${#urls[@]};++i)); do | |
| name=$(echo ${names[i]} | sed 's/"//g') | |
| url=$(echo ${urls[i]} | sed 's/"//g') | |
| wget -O ${src}/${name} ${url} | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment