diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-24 18:28:24 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-24 18:28:24 +0200 |
| commit | 2d4d0f339ab2bfc5c0d74bd18048f96499172e85 (patch) | |
| tree | c9baf9d9e4e2568f1c8be69a988ef73eea5d9827 /feed | |
| parent | 62cd5e6f9b80b1f2cbd6f2ad553b5e62813cb2ab (diff) | |
| download | scripts-2d4d0f339ab2bfc5c0d74bd18048f96499172e85.tar.gz scripts-2d4d0f339ab2bfc5c0d74bd18048f96499172e85.zip | |
Sort feed by most recent
Diffstat (limited to '')
| -rwxr-xr-x | feed | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | } |
