aboutsummaryrefslogtreecommitdiff
path: root/feed
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-24 18:28:24 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-24 18:28:24 +0200
commit2d4d0f339ab2bfc5c0d74bd18048f96499172e85 (patch)
treec9baf9d9e4e2568f1c8be69a988ef73eea5d9827 /feed
parent62cd5e6f9b80b1f2cbd6f2ad553b5e62813cb2ab (diff)
downloadscripts-2d4d0f339ab2bfc5c0d74bd18048f96499172e85.tar.gz
scripts-2d4d0f339ab2bfc5c0d74bd18048f96499172e85.zip
Sort feed by most recent
Diffstat (limited to 'feed')
-rwxr-xr-xfeed4
1 files changed, 2 insertions, 2 deletions
diff --git a/feed b/feed
index 64e5a5f..9597ba2 100755
--- a/feed
+++ b/feed
@@ -42,9 +42,9 @@ show() {
42 for f in "$destdir"/*; do 42 for f in "$destdir"/*; do
43 ff=$(basename "$f") 43 ff=$(basename "$f")
44 if [ -s "$f" ]; then 44 if [ -s "$f" ]; then
45 while read -r line; do 45 sort -r "$f" | while read -r line; do
46 printf '%20s %s\n' "$ff" "$line" 46 printf '%20s %s\n' "$ff" "$line"
47 done < "$f" 47 done
48 fi 48 fi
49 done 49 done
50} 50}

Generated with cgit - Back to sebastiano.tronto.net