title: Cut first and last line field
body: <p>I'm using grep to pull specific lines from multiple files and I'm trying to use cut to get the first and last field then use sort to get unique lines.</p>
  
  <p>I can cut the first or last field using:</p>
  
  <pre><code>command output | rev | cut -f1 | rev
  command output | cut -d(delimiter) -f1
  </code></pre>
  
  <p>I'm failing to find any documentation or previous questions that allow me to cut both fields in one shot with the number of fields in between being inconsistent. </p>
  
  <p>The output before cut looks like:</p>
  
  <pre><code>object garble garble #
  object garble garble #
  object garble garble garble #
  object garble garble #
  </code></pre>
  
  <p>And the output I need is:</p>
  
  <pre><code>object #
  object #
  object #
  object #
  </code></pre>
  
  <p>Note that the value of 'garble' is inconsistent as well, they represent notes made.</p>