diff options
Diffstat (limited to 'www')
-rw-r--r-- | www/text.causal.agency/feed.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/www/text.causal.agency/feed.sh b/www/text.causal.agency/feed.sh index f45bd326..53964cfb 100644 --- a/www/text.causal.agency/feed.sh +++ b/www/text.causal.agency/feed.sh @@ -23,7 +23,9 @@ encode() { ' "$@" } -for txt in *.txt; do +set -- *.txt +shift $(( $# - 20 )) +for txt; do entry="${txt%.txt}.7" date=$(grep '^[.]Dd' "$entry" | cut -c 5-) title=$(grep '^[.]Nm' "$entry" | cut -c 5- | encode) |