J'ai essayé de mettre en place un script bash qui lit la base de données en ligne de WordNet et se demandent s'il y a un moyen de supprimer un fichier texte de variété avec une seule commande.Retirer une variété de lignes dans un fichier texte
Exemple filedump:
**** Noun ****
(n)hello, hullo, hi, howdy, how-do-you-do (an expression of greeting) "every morning they exchanged polite hellos"
**** Verb ****
(v)run (move fast by using one's feet, with one foot off the ground at any given time) "Don't run--you'll be out of breath"; "The children ran to the store"
**** Adjective ****
(adj)running ((of fluids) moving or issuing in a stream) "as mountain stream with freely running water"; "hovels without running water"
J'ai juste besoin d'enlever les lignes qui décrivent les aspects de la grammaire par exemple
**** Noun ****
**** Verb ****
**** Adjective ****
Alors que je dispose d'un fichier propre avec seulement les définitions des mots:
(n)hello, hullo, hi, howdy, how-do-you-do (an expression of greeting) "every morning they exchanged polite hellos"
(v)run (move fast by using one's feet, with one foot off the ground at any given time) "Don't run--you'll be out of breath"; "The children ran to the store"
(adj)running ((of fluids) moving or issuing in a stream) "as mountain stream with freely running water"; "hovels without running water"
Les symboles * autour des termes grammaticaux me trébuchement dans sed.
Votre explication, et le deuxième morceau de code à la fois m'a aidé, et atteint le résultat. – user191960