#!/bin/bash # just a hacky script to check twitter module behaviour w.r.t. merging and normalising data # this checks against orger output for @karlicoss data set -eu FILE="$1" function check() { x="$1" if [[ $(rg --count "$x" "$FILE") != "1" ]]; then echo "FAILED! $x" fi } # only in old twitter archive data + test mentions check '2010-03-24 Wed 10:02.*@GDRussia подлагивает' # check that old twitter archive data replaces </> check '2011-05-12 Thu 17:51.*set ><' # this would probs be from twint or something? check '2013-06-01 Sat 18:48.*