Deutsch   English   Français   Italiano  
<t8pftn$gal$1@rasp.pasdenom.info>

View for Bookmarking (what is this?)
Look up another Usenet article

X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 82.66.60.35
Path: ...!feeds.phibee-telecom.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!pasdenom.info!.POSTED.2a01:e0a:21:ea80:a74a:55ec:b2f4:b775!not-for-mail
From: yamo' <yamo@beurdin.invalid>
Newsgroups: fr.comp.usenet.serveurs
Subject: Re: grep sur news.notice et rotation de fichiers
Supersedes: <t8pf7c$ck4$2@rasp.pasdenom.info>
Date: Mon, 20 Jun 2022 11:50:45 +0200
Organization: <https://pasdenom.info/news.html>
Message-ID: <t8pftn$gal$1@rasp.pasdenom.info>
References: <t8mhfs$scq$1@ns507557.dodin.fr.nf>
 <t8mp3l$e8$1@rasp.pasdenom.info> <t8n4i9$3q4$1@ns507557.dodin.fr.nf>
 <t8pblu$671$1@rasp.pasdenom.info> <t8peaa$pa3$1@ns507557.dodin.fr.nf>
Reply-To: yamo@groumpf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Jun 2022 09:50:47 -0000 (UTC)
Injection-Info: rasp.pasdenom.info; posting-account="stephane@usenet"; posting-host="2a01:e0a:21:ea80:a74a:55ec:b2f4:b775";
	logging-data="16725"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Firefox/68.0 SeaMonkey/2.53.12
Cancel-Key: sha256:KZrk0WpnKPDntJgLsO5Kzhq4DPq2WOdoVZa2Ggf1ii4=
Cancel-Lock: sha256:733H+0ygPfgov3LbAx7VK2On2zpAURSquucMNFsG2wQ=
X-Seamonkey:  <https://www.seamonkey-project.org/>
In-Reply-To: <t8peaa$pa3$1@ns507557.dodin.fr.nf>
Bytes: 2285
Lines: 25

Salut,
jdd wrote:
> mais sauf erreur, ça balaie toutes les archives (news.notice-*)!! et il 
> y en a un paquet.

Non, ça prend un seul fichier.

Tu peux essayer de taper :

ls -tr /var/log/news/OLD/news.notice-* |tail -1

Tu verras que ça ne donne qu'un seul nom de fichier
 qui doit logiquement être celui d'hier.

Donc la commande suivante (à adapter selon ce que tu veux avoir)
ne devrait te donner que les actions nocem contenus
dans le news.notice d'hier :
 xzgrep  nocem  $(ls -tr /var/log/news/OLD/news.notice-*  |tail -1)\
 | grep -E "processed|Articles cancelled"

Supersedes :
Ici, ça donne un meilleur résultat avec
"syslog" à la place de "news/OLD/news.notice".

-- 
Stéphane