#!/bin/sh
# 
# I made this script to clean up duplicate messages in the Android SMS/MMS
# database as exported by https://github.com/tmo1/sms-ie (v2.0.0).
jq -c '.__recipient_addresses |= unique_by(.address)' messages.ndjson > messages.uniqued.ndjson