how to handle bash with multiple arguments for multiple options
问题 I need to download chart data from poloniex rest client with multiple options using bash only. I tried getopts but couldn't really find a way to use mutliple options with multiple parameters. here is what I want to achieve ./getdata.sh -c currency1 currency2 ... -p period1 period2 ... having the arguments I need to call wget for c x p times for currency in c for period in p wget https://poloniex.com/public?command=returnChartData¤cyPair=BTC_{$currency}&start=1405699200&end=9999999999