about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-13 23:17:06 -0500
committerCase Duckworth2022-08-13 23:17:06 -0500
commit6a26111b2228b54af3e04d40b3232ea31cef4e54 (patch)
treefa6a381605ae6cb2e7b0d29b9ff27014efaff6ca
parentFix styling (diff)
downloadsfeed-6a26111b2228b54af3e04d40b3232ea31cef4e54.tar.gz
sfeed-6a26111b2228b54af3e04d40b3232ea31cef4e54.zip
Limit weeds to 50
-rwxr-xr-xsfeed_weed.awk4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfeed_weed.awk b/sfeed_weed.awk index d3a463c..ccc3521 100755 --- a/sfeed_weed.awk +++ b/sfeed_weed.awk
@@ -15,6 +15,10 @@ BEGIN {
15} 15}
16 16
17{ 17{
18 if (++line > 50) {
19 # Only show the newest 50 things.
20 exit
21 }
18 timestamp = $1 22 timestamp = $1
19 title = $2 23 title = $2
20 link = $3 24 link = $3