title: Using sed to extract strings from a text file
body: <p>I have text data in this form:</p>
  
  <pre><code>^Well/Well[ADV]+ADV ^John/John[N]+N ^has/have[V]+V+3sg+PRES ^a/a[ART]
  ^quite/quite[ADV]+ADV ^different/different[ADJ]+ADJ ^not/not[PART]
  ^necessarily/necessarily[ADV]+ADV ^more/more[ADV]+ADV
  ^elaborated/elaborate[V]+V+PPART ^theology/theology[N]+N *edu$
  </code></pre>
  
  <p>And I want it to be processed to this form:</p>
  
  <pre><code>Well John have a quite different not necessarily more elaborate theology
  </code></pre>
  
  <p>Basically, I need every string between the starting character <code>/</code> and the ending character <code>[</code>.</p>
  
  <p>Here is what I tried, but I just get empty files...</p>
  
  <pre><code>#!/bin/bash
  
  for file in probe/*.txt
  
  do sed '///,/[/d' $file &gt; $file.aa
  
  mv $file.aa $file
  
  done
  </code></pre>