Skip to content

Instantly share code, notes, and snippets.

@grischard grischard/josm2delete.sh
Last active Mar 10, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.