title: How to parse words in awk?
body: <p>I was wondering how to parse a parragraph that looks like the following:</p>
  
  <pre><code>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
  Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
  And many other lines with text that I do not need
  
                                      * * * * * * *
  
  Autolisp - Dialect of LISP used by the Autocad CAD package, Autodesk,
  Sausalito, CA.
  
  CPL - 
  
    1. Combined Programming Language.  U Cambridge and U London.  A very
  complex language, syntactically based on ALGOL-60, with a pure functional
  subset. 
  
  Modula-3* - Incoprporation of Modula-2* ideas into Modula-3.  "Modula-3*:
  </code></pre>
  
  <p>So I can get the following exit from the awk sentence:</p>
  
  <pre><code>Autolisp
  CPL
  Modula-3*
  </code></pre>
  
  <p>I have tried the following sentences because the file I want to filter is huge. It is a list of all the existing programming languages so far, but basically all the lines follow the same pattern as the above</p>
  
  <p>Sentences I have used so far:</p>
  
  <pre><code>BEGIN{$0 !~ /^ / &amp;&amp; NF == 2 &amp;&amp; $2 == "-"} { print $1 }
  
  BEGIN{RS=""; ORS="\n\n"; FS=OFS="\n"} /^FLIP -/{print $1,$3}
  
  BEGIN{RS=""; FS=OFS="\n"} {print $1 NF-1}
  
  BEGIN{NF == 2 &amp;&amp; $2 == "-" } { print $1 }
  
  BEGIN { RS = "" } { print $1 } 
  </code></pre>
  
  <p>The sentences that have worked for me so far are:</p>
  
  <pre><code>BEGIN { RS = "\n\n"; FS = " - " }
  { print $1 }
  
  awk -F " - " "/ - /{ print $1 }" file.txt
  </code></pre>
  
  <p>But it still prints or skips lines that I need/ don't need.</p>
  
  <p>Thanks for your help &amp; response!
  I have broken my head for some days because I am a rookie with AWK programming</p>