Sha256: 8e81528482e67de9178392230d0a7c0f8344420e5016b3ac9442f97458fbbbba
Contents?: true
Size: 329 Bytes
Versions: 28
Compression:
Stored size: 329 Bytes
Contents
#!/bin/sh set -e set -o pipefail PLACEHOLDER='${province_code}' num_provinces=$1 url=$2 for province_code in `seq 1 $num_provinces` do province_url=$(echo $url | sed -e s/$PLACEHOLDER/$province_code/g) curl -s $province_url > "tmp/p$province_code.xls" ssconvert "tmp/p$province_code.xls" "tmp/p$province_code.csv" done
Version data entries
28 entries across 28 versions & 1 rubygems