summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-05-15 20:55:38 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-05-15 20:55:38 +0200
commit16a6611cab6de98d5128ae5c89704f156b6dd855 (patch)
tree44f64aff70f482e3d14bf78170539787bf6efe19 /sfeed_update
parentb145174ad9eac818d0621c8ab2548c3f26565352 (diff)
README and sfeed_update: use names (order vs sort) and in the execution order
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update12
1 files changed, 6 insertions, 6 deletions
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() {