sfeednew (331B)
1 # Copyright 2023 Jacob R. Edwards <jacob@jacobedwards.org> 2 3 # To be redefined in sfeedrc 4 new() ; 5 6 merge() { 7 fifo="$sfeedtmpdir"/fifo_"$filename" 8 mkfifo "$fifo" 9 sort -t ' ' -u -k6,6 -k2,2 -k3,3 "$2" "$3" 2>/dev/null | tee $fifo & 10 { 11 order < "$fifo" | diff "$2" - | awk '/^>/ { print substr($0, 3) }' | new "$1" 12 } >/dev/null 13 }