| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
It's OK. Just need 2 n.
Thanks.
-----Message d'origine-----
De : MOKRANI Rachid
Envoyé : jeudi 10 novembre 2016 17:09
À : '[email protected]'
Objet : RE: grep sed replace
Hi Thierry,
If I don't make a mistake, It seem that your exemple add a line with " MY NEW STRING " after the third line "0.8".
I need to REPLACE 0.8 by "MY NEW STRING"
-----Message d'origine-----
De : [email protected] [mailto:[email protected]]
Envoyé : jeudi 10 novembre 2016 15:35
À : [email protected]
Objet : Re: grep sed replace
sed -r '/Tom/{n;n;n;s|.*|MY NEW STRING|}' yourfile
find Tom, go 3 lines down, change line
On 10/11/16 16:03, MOKRANI Rachid [email protected] [sed-users] wrote:
> Paul Brown
> monday
> 0.8
> Mike Blue
> monday
> 0.8
> Tom Red
> friday
> 0.8
> Virginie Rose
> saturday
> 0.8
> David Brown
> saturday
> 0.7
> Brian Yellow
> monday
> 0.55
> Tom Black
> thuesday
> 0.4
------------------------------------
Posted by: Thierry Blanc <[email protected]>
------------------------------------
--
------------------------------------
Yahoo Groups Links
__________________________
Avant d'imprimer, pensez à l'environnement ! Please consider the environment before printing !
Ce message et toutes ses pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies nouvelles décline toute responsabilité au titre de ce message. This message and any attachments are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP Energies nouvelles should not be liable for this message.
__________________________