Article View: news.software.readers
Article #180065Re: [slrn] interpolating a date in save_posts and save_replies
From: Peter J Ross
Date: Fri, 03 Feb 2006 19:04
Date: Fri, 03 Feb 2006 19:04
48 lines
3003 bytes
3003 bytes
On Fri, 03 Feb 2006 16:50:06 GMT, SINNER <arcade.master@gmail.com>
wrote in news.software.readers:
> * Peter J Ross wrote in news.software.readers:
>
>> 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
"Elegant" is one of Geekdom's highest terms of praise, and doesn't
apply to this kludge. *Elegant* would be testing for all strings that
represent recent dates in any recognisable format and replacing them
in the same format. And eliminating the clumsy repetition of
".sent.news", of course. And making coffee as a background process.
And it would *still* require less effort than installing Gnus. ;-) <=
(note emoticon, dear readers!)
(And it took me ten minutes to realise that the reason it didn't work
at first was that I'm a clumsy Vim user who adds rogue "i"s in
inconvenient places when I forget that I'm already in insert mode.
"datei" doesn't exist.)
I love sed. But according to AC I'm just a Windows Weenie, so what
could I know?
PJR :-)
--
Have you been touched ___ ___ Hammer of Thor, Jan 2006
by His noodly / _ \ / _ \
appendage? ( (_) )( (_) ) Pierre Salinger Memorial
\_ _/ \_ _/ Hook, Line & Sinker, Dec
STOP GLOBAL __ _.-\\----//--._ 2003 & May 2005
WARMING _ / _\___.-'/ _| / _\ /\/\`-._.-.__ _
NOW, (_\_)| \___ ||_ ((_ //\/\\ _.-._ \-' ) AHM Wittiest
JIM LAD! \__) __) | _| _) ) || || (_ \_.-' Troll of the
/_-. || \_/ || .-'-.\ Year, 2003
http:// _._// / .--._______.-'\ \ \\__._ 2004 & 2005
www. /_._/ \ \ )) \__._)
venganza (/ _.-') ( `-._ wsd 42 ~ mhm 34x8
.org/ (_.-' :F_P: `--._) smeeter 30 ~ mwpl 12
Technical Details
Message-ID:
<slrndu7abf.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!pd7cy2so!shaw.ca!news.alt.net!nntp.petitmorte.net!newsReferences:
<73pbb3-uk6.ln1@news.ducksburg.com> <slrndu6jfn.845.pjr@nntp.petitmorte.net> <Xns975F6E34239DFlouiscypherhellorg@140.99.99.130>Show Full Headers
Complete Article Headers
Message-ID: <slrndu7abf.845.pjr@nntp.petitmorte.net> Subject: Re: [slrn] interpolating a date in save_posts and save_replies Date: Fri, 3 Feb 2006 19:04:15 +0000 From: Peter J Ross <pjr@kookbusters.org> References: <73pbb3-uk6.ln1@news.ducksburg.com> <slrndu6jfn.845.pjr@nntp.petitmorte.net> <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!pd7cy2so!shaw.ca!news.alt.net!nntp.petitmorte.net!news Newsgroups: news.software.readers Organization: Cabal Obsidian Order [TINCOO] Lines: 48 X-Operating-System: Debian GNU/Linux (Sid/Unstable) X-Kernel: Linux 2.6.15-1-686 User-Agent: slrn/0.9.8.1pl1 (Debian)