Skip to content

Instantly share code, notes, and snippets.

@kubicek
Created January 8, 2010 12:19
Show Gist options
  • Save kubicek/272016 to your computer and use it in GitHub Desktop.
Save kubicek/272016 to your computer and use it in GitHub Desktop.
#!/bin/bash
for ico in `cat ico.txt`;do
echo "FETCHING $ico"
`curl "http://wwwinfo.mfcr.cz/cgi-bin/ares/darv_or.cgi?ico=$ico&ver=1.0.2"` >> data.xml
curl -X PUT --data-binary @data.xml http://localhost:5984/obchodni_rejstrik/_design/updater/_update/save_xml/$ico
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment