Bonsoir à tous,
voilà je voudrais supprimer des lignes de mes textes contenant le motif : 'AB -' et sa ligne suivante.
Par exemple:
TI - [Not available].
TI - Nutritional control of lipid synthesis.
AB - Dietary modification for the manipulation of lipid biosynthetic pathways
has currently become a major direction for improving health status. Certainly
TI - Nutritional effects of autoxidized fats in animal diets. 3. The growth of turkeys on diets containing oxidized fish oil.
J'ai essayé avec le filtre sed:
sed '/^AB -/+1d' fichier.txt
mais il me supprime même le début de la deuxième ligne suivante, i.e que j'ai comme résultat:
TI - [Not available].
TI - Nutritional control of lipid synthesis.
Nutritional effects of autoxidized fats in animal diets. 3. The growth of turkeys on diets containing oxidized fish oil
Voilà que doit je faire pour supprimer juste les lignes contenant le motif " AB - " + la ligne suivante.
Merci pour toutes vos réponses.
Partager