🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Troy Piggins Thu, 24 Sep 2009 02:24
[slrn] cleanscore leaving multiple blank lines
#235864
Author: Troy Piggins
Date: Thu, 24 Sep 2009 02:24
15 lines
1784 bytes
Either my memory is slipping or I'm going crazy, or both.  I
don't recall a solution for this...

I run cleanscore as a cron job so rarely check the tail end of my
score file.  Was just in there tinkering and noticed that as
cleanscore removes expired entries, it must be leaving blank
lines because between my permanent score and the one-key type
scores that have expiry dates there was a whole lot of blank
lines.

Anyone know of a fix?  I know I could write a script or something
to take care of it, but is there a more elegant way?

-- 
Troy Piggins
Re: [slrn] cleanscore leaving multiple blank lines
#235870
Author: James Michael Fultz
Date: Thu, 24 Sep 2009 04:35
25 lines
2318 bytes
* Troy Piggins <usenet-0909@piggo.com>:
> Either my memory is slipping or I'm going crazy, or both.  I
> don't recall a solution for this...
>
> I run cleanscore as a cron job so rarely check the tail end of
> my score file.  Was just in there tinkering and noticed that as
> cleanscore removes expired entries, it must be leaving blank
> lines because between my permanent score and the one-key type
> scores that have expiry dates there was a whole lot of blank
> lines.
>
> Anyone know of a fix?  I know I could write a script or
> something to take care of it, but is there a more elegant way?

There appears to be an option for limiting the number of empty of
lines.

$ cleanscore -h
 ...
-e N            "Empty lines". Cut multiple empty lines down to N.
 ...

-- 
James Michael Fultz <xyzzy@sent.as.invalid>
Remove this part when replying    ^^^^^^^^
Re: [slrn] cleanscore leaving multiple blank lines
#235871
Author: Troy Piggins
Date: Thu, 24 Sep 2009 05:08
22 lines
2012 bytes
* James Michael Fultz wrote :
> * Troy Piggins <usenet-0909@piggo.com>:
> [---=| Quote block shrinked by t-prot: 7 lines snipped |=---]
>> scores that have expiry dates there was a whole lot of blank
>> lines.
>>
>> Anyone know of a fix?  I know I could write a script or
>> something to take care of it, but is there a more elegant way?
>
> There appears to be an option for limiting the number of empty of
> lines.
>
> $ cleanscore -h
>  ...
> -e N            "Empty lines". Cut multiple empty lines down to N.
>  ...

Brilliant.  Who woulda thought, check the help first.  D'oh.
Thanks mate, works great.

-- 
Troy Piggins
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads