scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit 2d4d0f339ab2bfc5c0d74bd18048f96499172e85
parent 62cd5e6f9b80b1f2cbd6f2ad553b5e62813cb2ab
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Tue, 24 Oct 2023 18:28:24 +0200

Sort feed by most recent

Diffstat:
Mfeed | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/feed b/feed @@ -42,9 +42,9 @@ show() { for f in "$destdir"/*; do ff=$(basename "$f") if [ -s "$f" ]; then - while read -r line; do + sort -r "$f" | while read -r line; do printf '%20s %s\n' "$ff" "$line" - done < "$f" + done fi done }