Advertisement
willyb321

eddb

Sep 21st, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. for i in systems.csv bodies.jsonl systems_populated.json;
  4. do
  5. curl --compressed \
  6. --location \
  7. --remote-time \
  8. --time-cond ${i} \
  9. --output ${i} \
  10. --silent --show-error \
  11. --url https://eddb.io/archive/v5/${i}
  12. done
  13.  
  14. nice ./merge-eddb-populated-systems.pl
  15.  
  16. for i in systems.csv bodies.jsonl systems_populated.json;
  17. do
  18. touch --reference="${i}" "${i}.tmp"
  19. :> $i
  20. touch --reference="${i}.tmp" "${i}"
  21. rm -f "${i}.tmp"
  22. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement