Skip to content

Instantly share code, notes, and snippets.

@grischard
Last active March 10, 2018 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grischard/201165c5228db6cb2f14215541ac7316 to your computer and use it in GitHub Desktop.
Save grischard/201165c5228db6cb2f14215541ac7316 to your computer and use it in GitHub Desktop.
Show layers that are in JOSM but not in ELI that have been deleted from ELI
#!/bin/bash
for i in `grep -of <(diff -wui <(git show db8d389:./imagery.geojson | grep url | sort) <(jsonpp imagery.geojson | grep url | sort) | grep '^-' | grep \} | cut -d \" -f 4) <(curl --silent https://josm.openstreetmap.de/wiki/ImageryCompare | awk '/\*\*\* URLs found in JOSM but not in ELI/,/but different name/' | perl -MHTML::Entities -pe 'decode_entities($_);')`; do
echo $i
git --no-pager log --name-status -n 1 -S $i sources
echo "--"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment