Article View: news.software.readers
Article #180062Re: [slrn] interpolating a date in save_posts and save_replies
From: SINNER
Date: Fri, 03 Feb 2006 16:50
Date: Fri, 03 Feb 2006 16:50
26 lines
1947 bytes
1947 bytes
* Peter J Ross wrote in news.software.readers:
>> I've got the following in ~/.slrnrc now:
>>
>> set save_posts ".slrn/news.sent"
>> set save_replies ".slrn/mail.sent"
>>
>> I'd like to know if it's possible to put into those values a variable
>> for the date, ideally in YYYYMMDD format, so that instead of having
>> one file of all my posts, I get a separate file for each day,
>> for exampled ~/.slrn/20060203.sent.news for today.
>
> I suggest using sed to rewrite .slrnrc before opening slrn. Using your
> example:
>
>
> set save_posts ".slrn/xxxxxxxx.sent.news"
>
>
> user@domain:~$ TODAY=`date +%Y%m%d` && sed -i
> "s/.\{8\}\.sent\.news/$TODAY.sent.news/" ~/.slrnrc && slrn
Simply elegant
--
David
Technical Details
Message-ID:
<Xns975F6E34239DFlouiscypherhellorg@140.99.99.130>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsfeed.news2me.com!newsfeed2.easynews.com!easynews.com!easynews!easynews-local!fe09.news.easynews.com.POSTED!not-for-mailReferences:
<73pbb3-uk6.ln1@news.ducksburg.com> <slrndu6jfn.845.pjr@nntp.petitmorte.net>Show Full Headers
Complete Article Headers
Message-ID: <Xns975F6E34239DFlouiscypherhellorg@140.99.99.130> Subject: Re: [slrn] interpolating a date in save_posts and save_replies Date: Fri, 03 Feb 2006 16:50:06 GMT From: SINNER <arcade.master@gmail.com> References: <73pbb3-uk6.ln1@news.ducksburg.com> <slrndu6jfn.845.pjr@nntp.petitmorte.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsfeed.news2me.com!newsfeed2.easynews.com!easynews.com!easynews!easynews-local!fe09.news.easynews.com.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Hell.org User-Agent: Xnews/5.04.25 X-Face: #sn6gF@jD*I3X; _)M5ymNQ1wG39y^'rxXRA5y-oi7.T/>P.P-40N\&-q'Mu+DWRSTF[}`Vtd85KnX\fe1~p-<(9U<zenv]u["swbx<^u; %a:ro>w=r"qdVdsY_@\.mDg9"ruPsYjX.Bi9M#gF-fG5=obWVG'>0W*w3RC Lines: 26 X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.