Last active
April 13, 2019 07:01
-
-
Save ayoubfathi/761205a5cadac5cac69e73dfaff6b4b9 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
for i in $(cat stores-exchange.txt); | |
do | |
j=$(curl -s "https://exchangemarketplace.com/shops/$i/revenue_data" | |
| dap json + insert store=$i.myshopify.com + json) | |
echo $j | jq -c . >> sales_data.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment