summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rwxr-xr-xsfeed_update12
2 files changed, 8 insertions, 8 deletions
diff --git a/README b/README
index 9ac5911..478941e 100644
--- a/README
+++ b/README
@@ -6,7 +6,7 @@ RSS and Atom parser (and some format programs).
It converts RSS or Atom feeds from XML to a TAB-separated file. There are
formatting programs included to convert this TAB-separated format to various
other formats. There are also some programs and scripts included to import and
-export OPML and to update, sort, filter and merge feed items.
+export OPML and to fetch, filter, merge and order feed items.
Build and install
@@ -147,8 +147,8 @@ sfeedrc - Config file. This file is evaluated as a shellscript in
Atleast the following functions can be overridden per feed:
- fetch: to use wget(1), OpenBSD ftp(1) or an other download program.
-- merge: to change the merge logic.
- filter: to filter on fields.
+- merge: to change the merge logic.
- order: to change the sort order.
See also the sfeedrc(5) man page documentation for more details.
diff --git a/sfeed_update b/sfeed_update
index 43677ae..53b00f0 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -61,18 +61,18 @@ filter() {
cat
}
-# order by timestamp (descending).
-# order(name)
-order() {
- sort -t ' ' -k1rn,1
-}
-
# merge raw files: unique sort by id, title, link.
# merge(name, oldfile, newfile)
merge() {
sort -t ' ' -u -k6,6 -k2,2 -k3,3 "$2" "$3" 2>/dev/null
}
+# order by timestamp (descending).
+# order(name)
+order() {
+ sort -t ' ' -k1rn,1
+}
+
# fetch and parse feed.
# feed(name, feedurl, [basesiteurl], [encoding])
feed() {