Subject: [PATCH sxmo-utils v5 2/8] Add other contacts after recents ones to contact list

From: Reed Wade <[email-masked]>
Date: Sat, 10 Oct 2020 15:59:29 +0200

Signed-off-by: Reed Wade <[email-masked]>
---
 scripts/core/sxmo_contacts.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/core/sxmo_contacts.sh b/scripts/core/sxmo_contacts.sh
index 1acc638..2e5111e 100755
--- a/scripts/core/sxmo_contacts.sh
+++ b/scripts/core/sxmo_contacts.sh
@@ -26,6 +26,11 @@ contacts() {
 			if (substr($0,1,1) == "+") print $0 ": " a[$1]
 		}
 	' "$CONTACTSFILE" -
+
+	RECENTCONTACTEDREGEX="$(echo $RECENTCONTACTEDNUMBERSREVCHRON | sed 's/ /\\|/g')"
+	cat "$CONTACTSFILE" | \
+		grep -v "$RECENTCONTACTEDREGEX" | \
+		sed 's|\t|: |'
 }
 
 contacts
-- 
2.28.0