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&period={$period}
well I am explicitly writing my ultimate goal as probably many others looking for it nowadays.