Shell : supprimer toutes occurences sauf une
Résolu/Fermé
A voir également:
- Shell : supprimer toutes occurences sauf une
- Classic shell windows 10 français - Télécharger - Personnalisation
- Efi shell - Forum Windows 10
- Efi shell version 2.31 - Forum Programmation
- Secure shell - Télécharger - Divers Web & Internet
- Shell substring ✓ - Forum Shell
1 réponse
jipicy
Messages postés
40842
Date d'inscription
jeudi 28 août 2003
Statut
Modérateur
Dernière intervention
10 août 2020
4 895
6 juil. 2010 à 11:34
6 juil. 2010 à 11:34
Salut,
;-))
jp@MDK:~/tmpfs ssh$ cat plop Je pars de toto tata titi toto tutu tete tyty toto Et je veux toto tata titi tutu tete tyty jp@MDK:~/tmpfs ssh$ sed ':z;s/toto//2;tz' plop Je pars de toto tata titi tutu tete tyty Et je veux toto tata titi tutu tete tyty jp@MDK:~/tmpfs ssh$
;-))
6 juil. 2010 à 13:02
Maintenant je vais googler un peu pour comprendre ta réponse :-)
6 juil. 2010 à 13:04
https://forums.commentcamarche.net/forum/affich-37620084-sed-introduction-a-sed-part-i
https://forums.commentcamarche.net/forum/affich-37620020-sed-introduction-a-sed-part-ii
https://forums.commentcamarche.net/forum/affich-37620122-sed-introduction-a-sed-part-iii
6 juil. 2010 à 13:37
Merci!