dotfiles/dot_local/bin/executable_jq-compress

6 lines
251 B
Bash

#!/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