From 53c1e3a77bcea4b619e7d86c48d98ee151fe445b Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 18 Feb 2018 14:55:19 +0100 Subject: sfeed_update: revert previous commit, its not an issue --- sfeed_update | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sfeed_update b/sfeed_update index b3aa0da..2977bdc 100755 --- a/sfeed_update +++ b/sfeed_update @@ -31,13 +31,11 @@ loadconfig() { # merge raw files. # merge(oldfile, newfile) merge() { - oldfile="$(printf '%s' "$1" | tr ' ' ' ')" - newfile="$(printf '%s' "$2" | tr ' ' ' ')" # unique check by id, title, link. # print only new entries in newfile. # order new items by timestamp (asc). - (sed 's@^@O @' "${oldfile}" - sed 's@^@N @' "${newfile}") | \ + (sed 's@^@O @' "$1" + sed 's@^@N @' "$2") | \ LC_ALL=C awk '!x[$7 " " $3 " " $4]++ && $1 == "N"' 2>/dev/null | \ cut -f 2- | \ sort -t ' ' -k1n,1 -- cgit v1.2.3