dotfiles/dot_local/bin/executable_jq-compress

6 lines
251 B
Plaintext
Raw Normal View History

2023-09-15 15:46:04 -04:00
#!/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