私はwordnetのオンラインデータベースから読み取るbashスクリプトを実装しようとしていて、1つのコマンドでさまざまなテキストファイルを削除する方法があるかどうか疑問に思っていました。
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"
文法の側面を説明する行を削除する必要があります。
**** Noun ****
**** Verb ****
**** Adjective ****
単語の定義のみを含むクリーンなファイルを作成するために、次のようにします。
(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"
文法用語の周りの*記号は、sedで私をつまずかせています。