From 17794ef8848c06b24bdddd34c78dc8acf2b96d16 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 20 Jul 2022 09:40:29 -0500 Subject: Customize merge() --- sfeedrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sfeedrc') diff --git a/sfeedrc b/sfeedrc index cc586e1..52a55c9 100644 --- a/sfeedrc +++ b/sfeedrc @@ -229,7 +229,7 @@ filter_embed_youtube() { filter_filter_links() { # shorten feedburner links and strip tracking parameters and pixels - awk -F '\t' 'BEGIN { OFS = "\t"; } + awk 'BEGIN { FS= "\t"; OFS = "\t"; } function filterlink(s) { # protocol must start with http, https or gopher. if (match(s, /^(http|https|gopher):\/\//) == 0) { @@ -280,6 +280,13 @@ fetch() { # fetch(name, url, feedfile) "$2" } +# Merge ######################################################## + +merge() { + # merge(name, oldfile, newfile) + sort -t ' ' -u -k6,6 -k3,3 "$2" "$3" 2>/dev/null +} + # Local Variables: # truncate-lines: t # End: -- cgit 1.4.1-21-gabe81