Split nodes in a osm file that are near a node in another osm file.
The intended use is to filter duplicated nodes before doing an import.
Two files are created: file-to-remove-duplicates-dup.osm and file-to-remove-duplicates-not_dup.osm
You have to edit the TAGS and MAX_DISTANCE variables
Usage: ./osmsplitdup.sh file-with-OSM-data.osm file-to-remove-duplicates.osm